Fix small tile state issue
On catching exception was assigning to an unused value. Test: make Change-Id: Ic70759f02cabdbc3833c94bb89c1e3a776fbbf59
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user