From 2befa22b2c751668c230020decc2144cf5b33cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 20 May 2015 18:40:20 +0200 Subject: [PATCH] Remove uneeded case of no new permissions in InstallConfirmActivity --- F-Droid/res/layout/label.xml | 20 ------------------- F-Droid/res/values/strings.xml | 2 -- .../installer/InstallConfirmActivity.java | 6 +----- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 F-Droid/res/layout/label.xml diff --git a/F-Droid/res/layout/label.xml b/F-Droid/res/layout/label.xml deleted file mode 100644 index b9b80e7b3..000000000 --- a/F-Droid/res/layout/label.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - diff --git a/F-Droid/res/values/strings.xml b/F-Droid/res/values/strings.xml index 48095b879..5155416c5 100644 --- a/F-Droid/res/values/strings.xml +++ b/F-Droid/res/values/strings.xml @@ -367,8 +367,6 @@ Do you want to replace this app with the factory version? Do you want to uninstall this app? - This update requires no new permissions. - NEW: Provided by %1$s. diff --git a/F-Droid/src/org/fdroid/fdroid/installer/InstallConfirmActivity.java b/F-Droid/src/org/fdroid/fdroid/installer/InstallConfirmActivity.java index 33b4473f3..e38d1d1ae 100644 --- a/F-Droid/src/org/fdroid/fdroid/installer/InstallConfirmActivity.java +++ b/F-Droid/src/org/fdroid/fdroid/installer/InstallConfirmActivity.java @@ -100,11 +100,7 @@ public class InstallConfirmActivity extends Activity implements OnCancelListener mScrollView.addView(perms.getPermissionsView( AppSecurityPermissions.WHICH_NEW)); } else { - LayoutInflater inflater = (LayoutInflater) getSystemService( - Context.LAYOUT_INFLATER_SERVICE); - TextView label = (TextView) inflater.inflate(R.layout.label, null); - label.setText(R.string.no_new_perms); - mScrollView.addView(label); + throw new RuntimeException("This should not happen. No new permissions were found but InstallConfirmActivity has been started!"); } adapter.addTab(tabHost.newTabSpec(TAB_ID_NEW).setIndicator( getText(R.string.newPerms)), mScrollView);