Change Panels creation interface to take a bundle

Fixes: 124399577
Test: robolectric
adb shell am start -a android.settings.panel.action.WIFI
adb shell am start -a android.settings.panel.action.VOLUME

Change-Id: I9e13357444e4ebeee50fb8cc68fbc974ce5fffb6
This commit is contained in:
Raff Tsai
2019-10-18 12:51:28 +08:00
parent 4b4b7e76c4
commit dfba9a0f6d
7 changed files with 31 additions and 25 deletions

View File

@@ -17,12 +17,12 @@
package com.android.settings.panel;
import android.content.Context;
import android.os.Bundle;
public interface PanelFeatureProvider {
/**
* Returns {@link PanelContent} as specified by the {@param panelType}, and
* {@param mediaPackageName}.
* Returns {@link PanelContent} as specified by the {@param bundle}
*/
PanelContent getPanel(Context context, String panelType, String mediaPackageName);
PanelContent getPanel(Context context, Bundle bundle);
}