Ensure that we update the controller before setting menu visibility.
Bug: 36444329 Test: Launch PIP with media session, expand to see menu Change-Id: I8ca4d459a2989c93c4300ac687dce298f4233822
This commit is contained in:
@@ -172,7 +172,6 @@ public class PipMenuActivity extends Activity {
|
||||
|
||||
updateFromIntent(getIntent());
|
||||
setTitle(R.string.pip_menu_title);
|
||||
notifyActivityCallback(mMessenger);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -304,6 +303,7 @@ public class PipMenuActivity extends Activity {
|
||||
|
||||
private void updateFromIntent(Intent intent) {
|
||||
mToControllerMessenger = intent.getParcelableExtra(EXTRA_CONTROLLER_MESSENGER);
|
||||
notifyActivityCallback(mMessenger);
|
||||
ParceledListSlice actions = intent.getParcelableExtra(EXTRA_ACTIONS);
|
||||
if (actions != null) {
|
||||
mActions.clear();
|
||||
|
||||
Reference in New Issue
Block a user