Fix crash when launching 'LauncherShortcuts' with unexpected action
@@ -12,13 +12,12 @@ import com.fsck.k9.search.SearchAccount;
public class LauncherShortcuts extends AccountList {
@Override
public void onCreate(Bundle icicle) {
+ super.onCreate(icicle);
+
// finish() immediately if we aren't supposed to be here
if (!Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction())) {
finish();
- return;
}
-
- super.onCreate(icicle);
}
@Override
