summaryrefslogtreecommitdiffstats
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
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
-rwxr-xr-xres/layout/install_confirm.xml1
-rw-r--r--src/com/android/packageinstaller/PackageInstallerActivity.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/res/layout/install_confirm.xml b/res/layout/install_confirm.xml
index 524a468f..96340988 100755
--- a/res/layout/install_confirm.xml
+++ b/res/layout/install_confirm.xml
@@ -24,6 +24,7 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
+ android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
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);