mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 07:22:45 +00:00
use new drawable when setting background after removing pinned toolbar key
fixes #184
This commit is contained in:
parent
ff009beb78
commit
b07f4bb489
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
||||||
Settings.addPinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
|
Settings.addPinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
|
||||||
} else {
|
} else {
|
||||||
Settings.removePinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
|
Settings.removePinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
|
||||||
mToolbar.findViewWithTag(tag).setBackground(mDefaultBackground);
|
mToolbar.findViewWithTag(tag).setBackground(mDefaultBackground.getConstantState().newDrawable(getResources()));
|
||||||
mPinnedKeys.removeView(pinnedKeyView);
|
mPinnedKeys.removeView(pinnedKeyView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue