Correctly propagate bundle extra from intent to fragment

am: e8666c6664

Change-Id: I8658f9460d4d06c746dcfd2aa1b037fe7bb545b9
This commit is contained in:
Fan Zhang
2018-03-06 00:36:33 +00:00
committed by android-build-merger

View File

@@ -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 {