Skip to content

Commit

Permalink
use new drawable when setting background after removing pinned toolba…
Browse files Browse the repository at this point in the history
…r key

fixes #184
  • Loading branch information
Helium314 committed Oct 20, 2023
1 parent ff009be commit b07f4bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private void onLongClickToolKey(final View view) {
Settings.addPinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
} else {
Settings.removePinnedKey(DeviceProtectedUtils.getSharedPreferences(getContext()), tag);
mToolbar.findViewWithTag(tag).setBackground(mDefaultBackground);
mToolbar.findViewWithTag(tag).setBackground(mDefaultBackground.getConstantState().newDrawable(getResources()));
mPinnedKeys.removeView(pinnedKeyView);
}
}
Expand Down

0 comments on commit b07f4bb

Please sign in to comment.