Always use the new group settings screen if the flag is enabled.

This commit is contained in:
Alex Hart
2020-06-02 16:09:48 -03:00
committed by GitHub
parent 3192cc0aac
commit ae87d23003
9 changed files with 65 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ import androidx.annotation.DimenRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StyleRes;
import androidx.appcompat.content.res.AppCompatResources;
import androidx.appcompat.view.ContextThemeWrapper;
import androidx.core.content.ContextCompat;
@@ -49,7 +50,7 @@ public class ThemeUtil {
Resources.Theme theme = context.getTheme();
if (theme.resolveAttribute(attr, typedValue, true)) {
return ContextCompat.getDrawable(context, typedValue.resourceId);
return AppCompatResources.getDrawable(context, typedValue.resourceId);
}
return null;