OSDN Git Service

Fix small tile state issue
authorJason Monk <jmonk@google.com>
Fri, 3 Mar 2017 14:10:50 +0000 (09:10 -0500)
committerJason Monk <jmonk@google.com>
Fri, 3 Mar 2017 14:10:50 +0000 (09:10 -0500)
On catching exception was assigning to an unused value.

Test: make
Change-Id: Ic70759f02cabdbc3833c94bb89c1e3a776fbbf59

packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java

index b28b0e7..a76299d 100644 (file)
@@ -288,7 +288,7 @@ public class CustomTile extends QSTile<QSTile.State> implements TileChangeListen
             drawable = mTile.getIcon().loadDrawable(mContext);
         } catch (Exception e) {
             Log.w(TAG, "Invalid icon, forcing into unavailable state");
-            tileState = Tile.STATE_UNAVAILABLE;
+            state.state = Tile.STATE_UNAVAILABLE;
             drawable = mDefaultIcon.loadDrawable(mContext);
         }
         state.icon = new DrawableIcon(drawable);