mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2631 from devoncarew/fix_app_delete
fix a launch issue when the user has deleted the app
This commit is contained in:
commit
e67b67680b
@ -147,7 +147,11 @@ class AndroidDevice extends Device {
|
||||
|
||||
@override
|
||||
bool isAppInstalled(ApplicationPackage app) {
|
||||
// Just check for the existence of the application SHA.
|
||||
// This call takes 400ms - 600ms.
|
||||
if (runCheckedSync(adbCommandForDevice(['shell', 'pm', 'path', app.id])).isEmpty)
|
||||
return false;
|
||||
|
||||
// Check the application SHA.
|
||||
return _getDeviceApkSha1(app) == _getSourceSha1(app);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user