Merge "Add tile information to ACTION_QS_TILE_PREFERENCES intent"
This commit is contained in:
@@ -130,6 +130,11 @@ public class TileService extends Service {
|
|||||||
*/
|
*/
|
||||||
public static final String EXTRA_COMPONENT = "android.service.quicksettings.extra.COMPONENT";
|
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 final H mHandler = new H(Looper.getMainLooper());
|
||||||
|
|
||||||
private boolean mListening = false;
|
private boolean mListening = false;
|
||||||
|
|||||||
@@ -232,6 +232,8 @@ public class CustomTile extends QSTile<QSTile.State> implements TileChangeListen
|
|||||||
i.setPackage(mComponent.getPackageName());
|
i.setPackage(mComponent.getPackageName());
|
||||||
i = resolveIntent(i);
|
i = resolveIntent(i);
|
||||||
if (i != null) {
|
if (i != null) {
|
||||||
|
i.putExtra(TileService.EXTRA_COMPONENT, mComponent);
|
||||||
|
i.putExtra(TileService.EXTRA_STATE, mTile.getState());
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).setData(
|
return new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).setData(
|
||||||
|
|||||||
Reference in New Issue
Block a user