First commit for settings panels
Establish the Activity which hosts Settings panels through the PanelFragment. The Activity's purpose is to validate the intent data coming in, including: - Called with startActivityForResult (so we can log who is calling) - Intent has the proper intent extra to link to a Panel The fragment takes the Panelable data and builds a Settings Panel. Each panel will have: - Title - List of Slices - Link to underlying content The Panelable interface is created to provide all of those datums, and the new FetureProvider provides the Panelables by linking them with keys. The keys will eventually become public APIs with CTS tests.For now, we store them locally. I included an exmaple panel, the InternetConnectivityPanel which currently shows Wifi and Airplane mode. Screenshot: https://screenshot.googleplex.com/c6sv7ZzQ5OJ Bug: 117804089 Test: make -j40 RunSettingsRobotest Test: Manual app Change-Id: I1932f7179cc32088acd6413a736901ddf9651892
This commit is contained in:
committed by
Matthew Fritze
parent
5948259702
commit
90899e08f0
@@ -29,6 +29,7 @@ import com.android.settings.enterprise.EnterprisePrivacyFeatureProvider;
|
||||
import com.android.settings.fuelgauge.PowerUsageFeatureProvider;
|
||||
import com.android.settings.gestures.AssistGestureFeatureProvider;
|
||||
import com.android.settings.localepicker.LocaleFeatureProvider;
|
||||
import com.android.settings.panel.PanelFeatureProvider;
|
||||
import com.android.settings.search.SearchFeatureProvider;
|
||||
import com.android.settings.security.SecurityFeatureProvider;
|
||||
import com.android.settings.slices.SlicesFeatureProvider;
|
||||
@@ -105,6 +106,8 @@ public abstract class FeatureFactory {
|
||||
|
||||
public abstract AccountFeatureProvider getAccountFeatureProvider();
|
||||
|
||||
public abstract PanelFeatureProvider getPanelFeatureProvider();
|
||||
|
||||
public static final class FactoryNotFoundException extends RuntimeException {
|
||||
public FactoryNotFoundException(Throwable throwable) {
|
||||
super("Unable to create factory. Did you misconfigure Proguard?", throwable);
|
||||
|
Reference in New Issue
Block a user