mirror of
https://github.com/moparisthebest/k-9
synced 2024-08-13 17:03:48 -04:00
Fixes Issue 1652
Fixes Issue 1644 Grab correct color from preferences storage for LED. Also, remove LED and chip colors on account deletion.
This commit is contained in:
parent
5627117ddf
commit
7ca2086c73
@ -242,7 +242,7 @@ public class Account implements BaseAccount
|
|||||||
(random.nextInt(0x70) * 0xffff) +
|
(random.nextInt(0x70) * 0xffff) +
|
||||||
0xff000000);
|
0xff000000);
|
||||||
|
|
||||||
mLedColor = preferences.getPreferences().getInt(mUuid+".chipColor", mChipColor);
|
mLedColor = preferences.getPreferences().getInt(mUuid+".ledColor", mChipColor);
|
||||||
|
|
||||||
mVibrate = preferences.getPreferences().getBoolean(mUuid + ".vibrate", false);
|
mVibrate = preferences.getPreferences().getBoolean(mUuid + ".vibrate", false);
|
||||||
mRing = preferences.getPreferences().getBoolean(mUuid + ".ring", true);
|
mRing = preferences.getPreferences().getBoolean(mUuid + ".ring", true);
|
||||||
@ -367,6 +367,8 @@ public class Account implements BaseAccount
|
|||||||
editor.remove(mUuid + ".expungePolicy");
|
editor.remove(mUuid + ".expungePolicy");
|
||||||
editor.remove(mUuid + ".maxPushFolders");
|
editor.remove(mUuid + ".maxPushFolders");
|
||||||
editor.remove(mUuid + ".searchableFolders");
|
editor.remove(mUuid + ".searchableFolders");
|
||||||
|
editor.remove(mUuid + ".chipColor");
|
||||||
|
editor.remove(mUuid + ".ledColor");
|
||||||
editor.remove(mUuid + ".goToUnreadMessageSearch");
|
editor.remove(mUuid + ".goToUnreadMessageSearch");
|
||||||
for (String type : networkTypes)
|
for (String type : networkTypes)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user