Fixed navigation from notifications

pull/153/head
M66B 7 years ago
parent c4eb9569b9
commit 67d052f500

@ -393,7 +393,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
}); });
if (getSupportFragmentManager().getFragments().size() == 0 && !getIntent().hasExtra(Intent.EXTRA_PROCESS_TEXT)) if (getSupportFragmentManager().getFragments().size() == 0 &&
!getIntent().hasExtra(Intent.EXTRA_PROCESS_TEXT))
init(); init();
if (savedInstanceState != null) if (savedInstanceState != null)
@ -452,11 +453,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
intent.setAction(null); intent.setAction(null);
setIntent(intent); setIntent(intent);
if ("unified".equals(action)) if ("unified".equals(action)) {
init(); getSupportFragmentManager().popBackStack("unified", 0);
else if ("why".equals(action)) { } else if ("why".equals(action)) {
init(); getSupportFragmentManager().popBackStack("unified", 0);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityView.this); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityView.this);
boolean why = prefs.getBoolean("why", false); boolean why = prefs.getBoolean("why", false);

Loading…
Cancel
Save