mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-04 20:30:36 +00:00
This fixes the following bugs: - Sort category is forgotten after lock/unlock - The sort mode is not respected for new entries I got a little carried away while working on this patch and also included the following other enhancements: - Simplify the SortCategory, Theme and ViewMode enums - Simplify usage of string resources - Don't call notifyDataSetChanged and runLayoutAnimation unnecessarily
17 lines
255 B
Java
17 lines
255 B
Java
package com.beemdevelopment.aegis;
|
|
|
|
public enum Theme {
|
|
LIGHT,
|
|
DARK,
|
|
AMOLED;
|
|
|
|
private static Theme[] _values;
|
|
|
|
static {
|
|
_values = values();
|
|
}
|
|
|
|
public static Theme fromInteger(int x) {
|
|
return _values[x];
|
|
}
|
|
}
|