Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f4cdbbe authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge \\"QS: Fix crash in tile API\\" into nyc-mr1-dev am: 77d8771b

am: 0c183d55

Change-Id: I51846b2a8e98803f3b77949e56d4f6c99198c5e6
parents 86cbf883 0c183d55
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -178,8 +178,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void updateQsTile(Tile tile, IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            synchronized (mServices) {
                final TileServiceManager tileServiceManager = mServices.get(customTile);
                tileServiceManager.clearPendingBind();
@@ -193,8 +193,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void onStartSuccessful(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            synchronized (mServices) {
                final TileServiceManager tileServiceManager = mServices.get(customTile);
                tileServiceManager.clearPendingBind();
@@ -206,8 +206,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void onShowDialog(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            customTile.onDialogShown();
            mHost.collapsePanels();
            mServices.get(customTile).setShowingDialog(true);
@@ -217,8 +217,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void onDialogHidden(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            mServices.get(customTile).setShowingDialog(false);
            customTile.onDialogHidden();
        }
@@ -227,8 +227,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void onStartActivity(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            mHost.collapsePanels();
        }
    }
@@ -236,8 +236,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void updateStatusIcon(IBinder token, Icon icon, String contentDescription) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            try {
                ComponentName componentName = customTile.getComponent();
                String packageName = componentName.getPackageName();
@@ -266,8 +266,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public Tile getTile(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            return customTile.getQsTile();
        }
        return null;
@@ -276,8 +276,8 @@ public class TileServices extends IQSService.Stub {
    @Override
    public void startUnlockAndRun(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        verifyCaller(customTile);
        if (customTile != null) {
            verifyCaller(customTile);
            customTile.startUnlockAndRun();
        }
    }