Fix nullpointer

This commit is contained in:
Dominik Schürmann 2015-09-28 01:34:28 +02:00
parent 8f5a1850e9
commit 178eabfd01

View File

@ -59,7 +59,6 @@ public class InstallExtensionDialogActivity extends FragmentActivity {
public static final String ACTION_POST_INSTALL = "post_install"; public static final String ACTION_POST_INSTALL = "post_install";
public static final String ACTION_FIRST_TIME = "first_time"; public static final String ACTION_FIRST_TIME = "first_time";
String action;
String apkFile; String apkFile;
@Override @Override
@ -262,7 +261,7 @@ public class InstallExtensionDialogActivity extends FragmentActivity {
if (rootGranted) { if (rootGranted) {
// root access granted // root access granted
switch (action) { switch (getIntent().getAction()) {
case ACTION_UNINSTALL: case ACTION_UNINSTALL:
uninstallTask.execute(); uninstallTask.execute();
break; break;
@ -276,7 +275,7 @@ public class InstallExtensionDialogActivity extends FragmentActivity {
} else { } else {
// root access denied // root access denied
if (!ACTION_FIRST_TIME.equals(action)) { if (!ACTION_FIRST_TIME.equals(getIntent().getAction())) {
// hack to get theme applied (which is not automatically applied due to activity's Theme.NoDisplay // hack to get theme applied (which is not automatically applied due to activity's Theme.NoDisplay
ContextThemeWrapper theme = new ContextThemeWrapper(InstallExtensionDialogActivity.this, ContextThemeWrapper theme = new ContextThemeWrapper(InstallExtensionDialogActivity.this,
FDroidApp.getCurThemeResId()); FDroidApp.getCurThemeResId());