fix: exit live room

This commit is contained in:
lilong.129
2023-04-30 00:40:44 +08:00
parent a69db8500c
commit 6bc5e11e2d
6 changed files with 133 additions and 17 deletions

View File

@@ -371,7 +371,7 @@ func (ad *adbDriver) AssertAppForeground(packageName string) error {
if err != nil {
return err
}
if app.BundleId != packageName {
if app.PackageName != packageName {
return errors.New("app is not in foreground")
}
return nil
@@ -397,8 +397,8 @@ func (ad *adbDriver) GetForegroundApp() (app AppInfo, err error) {
s := strings.Split(str, "/")
app := AppInfo{
AppBaseInfo: AppBaseInfo{
BundleId: s[0],
Activity: s[1],
PackageName: s[0],
Activity: s[1],
},
}
return app, nil