Debug: folder favorite color

pull/213/head
M66B 1 year ago
parent 6271fd92fe
commit 6dbb2242b6

@ -409,16 +409,17 @@ public class FragmentDialogSelectFolder extends FragmentDialogBase {
else { else {
if (data.favorites != null && data.favorites.size() > 0) { if (data.favorites != null && data.favorites.size() > 0) {
Integer textColor = null; Integer textColor = null;
try { if (BuildConfig.DEBUG)
TypedValue tv = new TypedValue(); try {
Resources.Theme theme = context.getTheme(); TypedValue tv = new TypedValue();
theme.resolveAttribute(android.R.attr.textAppearanceButton, tv, true); Resources.Theme theme = context.getTheme();
int[] attr = new int[]{android.R.attr.textColor}; theme.resolveAttribute(android.R.attr.textAppearanceButton, tv, true);
TypedArray ta = theme.obtainStyledAttributes(tv.resourceId, attr); int[] attr = new int[]{android.R.attr.textColor};
textColor = ta.getColor(0, Color.BLACK); TypedArray ta = theme.obtainStyledAttributes(tv.resourceId, attr);
} catch (Throwable ex) { textColor = ta.getColor(0, Color.BLACK);
Log.e(ex); } catch (Throwable ex) {
} Log.e(ex);
}
Button[] btn = new Button[]{btnFavorite1, btnFavorite2, btnFavorite3}; Button[] btn = new Button[]{btnFavorite1, btnFavorite2, btnFavorite3};
for (int i = 0; i < btn.length; i++) for (int i = 0; i < btn.length; i++)

Loading…
Cancel
Save