From 2ae789b2bda885c393acca504ad663946ea38789 Mon Sep 17 00:00:00 2001 From: Suchi Amalapurapu Date: Tue, 6 Oct 2009 09:29:16 -0700 Subject: 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 --- src/com/android/packageinstaller/PackageInstallerActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3