mirror of https://github.com/beemdevelopment/Aegis
Use MaterialColors.getColor instead of our own helper
I set CompactDividerDecoration to transparant, because that was already effectively the case. I think we can remove this class entirely, but I'll do that in a separate PR.pull/1301/head
parent
f76d84ef87
commit
2e44a81c69
@ -1,23 +0,0 @@
|
|||||||
package com.beemdevelopment.aegis.helpers;
|
|
||||||
|
|
||||||
import android.content.res.Resources;
|
|
||||||
import android.graphics.Color;
|
|
||||||
import android.util.TypedValue;
|
|
||||||
|
|
||||||
import androidx.annotation.ColorInt;
|
|
||||||
|
|
||||||
import com.beemdevelopment.aegis.R;
|
|
||||||
|
|
||||||
public class ThemeHelper {
|
|
||||||
private ThemeHelper() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int getThemeColor(int attributeId, Resources.Theme currentTheme) {
|
|
||||||
TypedValue typedValue = new TypedValue();
|
|
||||||
currentTheme.resolveAttribute(attributeId, typedValue, true);
|
|
||||||
@ColorInt int color = typedValue.data;
|
|
||||||
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue