|
|
|
@ -436,8 +436,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
if (savedInstanceState != null)
|
|
|
|
|
drawerToggle.setDrawerIndicatorEnabled(savedInstanceState.getBoolean("fair:toggle"));
|
|
|
|
|
|
|
|
|
|
new Handler().post(checkIntent);
|
|
|
|
|
|
|
|
|
|
checkIntent();
|
|
|
|
|
checkFirst();
|
|
|
|
|
checkCrash();
|
|
|
|
|
|
|
|
|
@ -470,12 +469,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Runnable checkIntent = new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
private void checkIntent() {
|
|
|
|
|
Intent intent = getIntent();
|
|
|
|
|
|
|
|
|
|
String action = intent.getAction();
|
|
|
|
@ -485,9 +479,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
setIntent(intent);
|
|
|
|
|
|
|
|
|
|
if ("unified".equals(action)) {
|
|
|
|
|
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
|
|
|
|
getSupportFragmentManager().popBackStack("unified", 0);
|
|
|
|
|
|
|
|
|
|
} else if ("why".equals(action)) {
|
|
|
|
|
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
|
|
|
|
getSupportFragmentManager().popBackStack("unified", 0);
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityView.this);
|
|
|
|
@ -504,9 +500,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
|
|
|
|
|
} else if ("outbox".equals(action))
|
|
|
|
|
onMenuOutbox();
|
|
|
|
|
|
|
|
|
|
else if (action.startsWith("thread")) {
|
|
|
|
|
intent.putExtra("thread", action.split(":", 2)[1]);
|
|
|
|
|
onViewThread(intent);
|
|
|
|
|
|
|
|
|
|
} else if (action.equals("widget"))
|
|
|
|
|
onViewThread(intent);
|
|
|
|
|
}
|
|
|
|
@ -523,7 +521,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
-1, false, search);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onSaveInstanceState(Bundle outState) {
|
|
|
|
@ -542,7 +539,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
protected void onNewIntent(Intent intent) {
|
|
|
|
|
super.onNewIntent(intent);
|
|
|
|
|
setIntent(intent);
|
|
|
|
|
new Handler().post(checkIntent);
|
|
|
|
|
checkIntent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|