mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Debug: folder favorite color
This commit is contained in:
@@ -409,16 +409,17 @@ public class FragmentDialogSelectFolder extends FragmentDialogBase {
|
||||
else {
|
||||
if (data.favorites != null && data.favorites.size() > 0) {
|
||||
Integer textColor = null;
|
||||
try {
|
||||
TypedValue tv = new TypedValue();
|
||||
Resources.Theme theme = context.getTheme();
|
||||
theme.resolveAttribute(android.R.attr.textAppearanceButton, tv, true);
|
||||
int[] attr = new int[]{android.R.attr.textColor};
|
||||
TypedArray ta = theme.obtainStyledAttributes(tv.resourceId, attr);
|
||||
textColor = ta.getColor(0, Color.BLACK);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
if (BuildConfig.DEBUG)
|
||||
try {
|
||||
TypedValue tv = new TypedValue();
|
||||
Resources.Theme theme = context.getTheme();
|
||||
theme.resolveAttribute(android.R.attr.textAppearanceButton, tv, true);
|
||||
int[] attr = new int[]{android.R.attr.textColor};
|
||||
TypedArray ta = theme.obtainStyledAttributes(tv.resourceId, attr);
|
||||
textColor = ta.getColor(0, Color.BLACK);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Button[] btn = new Button[]{btnFavorite1, btnFavorite2, btnFavorite3};
|
||||
for (int i = 0; i < btn.length; i++)
|
||||
|
||||
Reference in New Issue
Block a user