Correctly propagate bundle extra from intent to fragment
When someone launches settings intent and include args for fragment, we should propagate the args to fragment. Change-Id: I231a675123f056043e96ffad7498da6b9bc16687 Fixes: 74017572 Test: manual
This commit is contained in:
@@ -523,7 +523,7 @@ public class SettingsActivity extends SettingsDrawerActivity
|
|||||||
if (startingFragment != null) {
|
if (startingFragment != null) {
|
||||||
Intent modIntent = new Intent(superIntent);
|
Intent modIntent = new Intent(superIntent);
|
||||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, startingFragment);
|
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, startingFragment);
|
||||||
Bundle args = superIntent.getExtras();
|
Bundle args = superIntent.getBundleExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS);
|
||||||
if (args != null) {
|
if (args != null) {
|
||||||
args = new Bundle(args);
|
args = new Bundle(args);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user