mirror of
https://github.com/appium/appium.git
synced 2026-02-09 03:09:02 -06:00
Moved getCurrentActivity to android-common.js
This commit is contained in:
@@ -608,21 +608,6 @@ androidController.deleteCookies = function(cb) {
|
||||
cb(new NotYetImplementedError(), null);
|
||||
};
|
||||
|
||||
androidController.getCurrentActivity = function(cb) {
|
||||
this.adb.getFocusedPackageAndActivity(function(err, curPackage, activity) {
|
||||
if (err) {
|
||||
return cb(null, {
|
||||
status: status.codes.UnknownError.code
|
||||
, value: err.message
|
||||
});
|
||||
}
|
||||
cb(null, {
|
||||
status: status.codes.Success.code
|
||||
, value: activity
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
androidController.fastReset = function(cb) {
|
||||
async.series([
|
||||
function(cb) { this.adb.stopAndClear(this.appPackage, cb); }.bind(this),
|
||||
|
||||
Reference in New Issue
Block a user