summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2017-09-20 21:50:25 (GMT)
committerHarry Youd <harry@harryyoud.co.uk>2017-12-23 16:42:59 (GMT)
commitb2fe3f2014f70b0d887cb4adfa9d1ca7ee52132f (patch)
treee62db97fbff3310b41cb22dc7c1ac59a5af9f737
parent5eac860176e28a8a93642c5e79e16b3bd43178ae (diff)
downloadandroid_packages_apps_PackageInstaller-b2fe3f2014f70b0d887cb4adfa9d1ca7ee52132f.zip
android_packages_apps_PackageInstaller-b2fe3f2014f70b0d887cb4adfa9d1ca7ee52132f.tar.gz
android_packages_apps_PackageInstaller-b2fe3f2014f70b0d887cb4adfa9d1ca7ee52132f.tar.bz2
DO NOT MERGE Fixing Install button not enabled on resume
In cases where an app had a long list of permissions the Install button was not being enabled. Test: Manually clicked on an apk that required a long list of permissions. Checked that the install button is enabled. Switch out and back to the activity to force a pause/resume. The button gets disabled and enabled as expected. Also the existing test passes as before: gts-tradefed run gts-dev -m PackageInstallerTapjacking Bug: 35056974 Change-Id: I2ef7d5ce4e137969c70d2929271620c2bcb723f2 (cherry picked from commit 4c6afe94942c33e293d456be70ffa933d7d3e374)
-rw-r--r--src/com/android/packageinstaller/PackageInstallerActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java
index 7cf5189..dadc88a 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -590,7 +590,7 @@ public class PackageInstallerActivity extends OverlayTouchActivity implements On
super.onResume();
if (mOk != null) {
- mOk.setEnabled(mOkCanInstall);
+ mOk.setEnabled(true);
}
}