Fix small tile state issue

On catching exception was assigning to an unused value.

Test: make
Change-Id: Ic70759f02cabdbc3833c94bb89c1e3a776fbbf59
This commit is contained in:
Jason Monk
2017-03-03 09:10:50 -05:00
parent 00a5f2a658
commit 6f352aab0e

View 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);