summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2017-09-20 21:50:25 (GMT)
committerDan Pasanen <dan.pasanen@gmail.com>2017-12-11 00:33:59 (GMT)
commit81ba4151b7a87748bc91d3ee27fe8a3ede7ec4ca (patch)
treec24398dcab5e27fd2126e3a2f911e1a6a478f6e2
parentd65c53a61609a62907da98b76244cae6ff6c0951 (diff)
downloadandroid_packages_apps_PackageInstaller-81ba4151b7a87748bc91d3ee27fe8a3ede7ec4ca.zip
android_packages_apps_PackageInstaller-81ba4151b7a87748bc91d3ee27fe8a3ede7ec4ca.tar.gz
android_packages_apps_PackageInstaller-81ba4151b7a87748bc91d3ee27fe8a3ede7ec4ca.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 dab8863..56363f2 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -225,7 +225,7 @@ public class PackageInstallerActivity extends OverlayTouchActivity implements On
super.onResume();
if (mOk != null) {
- mOk.setEnabled(mOkCanInstall);
+ mOk.setEnabled(true);
}
}