summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2009-10-06 09:29:16 -0700
committerSuchi Amalapurapu <asuchitra@google.com>2009-10-06 10:26:44 -0700
commit2ae789b2bda885c393acca504ad663946ea38789 (patch)
treee8515f3c94a45570d92d2da62444e0a0af53f07f /src
parent3c9eac96e6c5f705cb2afae063716882ee5210dc (diff)
downloadandroid_packages_apps_PackageInstaller-2ae789b2bda885c393acca504ad663946ea38789.tar.gz
android_packages_apps_PackageInstaller-2ae789b2bda885c393acca504ad663946ea38789.tar.bz2
android_packages_apps_PackageInstaller-2ae789b2bda885c393acca504ad663946ea38789.zip
The scroll view listing permissions is given a weight of 1 so that the ok and cancel buttons appear at the bottom of the screen. If the permission list doesn't fillup the screen aka has very few permissions, the buttons don't appear at the buttom. so just increate the layout weight of the parent as well to fix this issue.
Also hide the whole permissions panel so that we don't see the text related to showing permissions at all
Diffstat (limited to 'src')
-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 3b429d94..8f681bb0 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -126,7 +126,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen
}
}
if(!permVisible){
- securityList.setVisibility(View.INVISIBLE);
+ permsSection.setVisibility(View.INVISIBLE);
}
mInstallConfirm.setVisibility(View.VISIBLE);
mOk = (Button)findViewById(R.id.ok_button);