Merge "Add tile information to ACTION_QS_TILE_PREFERENCES intent" am: ff1d8da55e am: 74a8b6543f

am: a8e10e5f20

Change-Id: I1585be50ecf4409f552b5ef5c91de1092a01e199
This commit is contained in:
Jason Monk
2017-02-06 15:52:04 +00:00
committed by android-build-merger
2 changed files with 7 additions and 0 deletions

View File

@@ -130,6 +130,11 @@ public class TileService extends Service {
*/
public static final String EXTRA_COMPONENT = "android.service.quicksettings.extra.COMPONENT";
/**
* @hide
*/
public static final String EXTRA_STATE = "state";
private final H mHandler = new H(Looper.getMainLooper());
private boolean mListening = false;

View File

@@ -240,6 +240,8 @@ public class CustomTile extends QSTile<QSTile.State> implements TileChangeListen
i.setPackage(mComponent.getPackageName());
i = resolveIntent(i);
if (i != null) {
i.putExtra(TileService.EXTRA_COMPONENT, mComponent);
i.putExtra(TileService.EXTRA_STATE, mTile.getState());
return i;
}
return new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).setData(