Add location to security settings.

Bug: 32437756
Test: RunSettingsRoboTests
Change-Id: I999669963801684eb2399f5e642159970727b3c4
This commit is contained in:
Fan Zhang
2016-10-26 10:44:45 -07:00
parent 9895344be6
commit 301fe80fa7
8 changed files with 224 additions and 76 deletions

View File

@@ -15,6 +15,7 @@
*/
package com.android.settings.dashboard;
import android.app.Activity;
import android.content.Context;
import android.support.v7.preference.Preference;
@@ -55,6 +56,16 @@ public interface DashboardFeatureProvider {
*/
String getDashboardKeyForTile(Tile tile);
/**
* Binds preference to data provided by tile.
*
* @param activity If tile contains intent to launch, it will be launched from this activity
* @param pref The preference to bind data
* @param tile The binding data
* @param key They key for preference. If null, we will generate one from tile data
*/
void bindPreferenceToTile(Activity activity, Preference pref, Tile tile, String key);
/**
* Returns a {@link ProgressiveDisclosureMixin} for specified fragment.
*/