Skip to content

Commit

Permalink
Use non-transitive R classes
Browse files Browse the repository at this point in the history
  • Loading branch information
oakkitten committed Feb 18, 2024
1 parent 6f1d8ad commit 80f623b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public FullScreenEditTextPreference(Context context) {

@SuppressWarnings("WeakerAccess")
public FullScreenEditTextPreference(Context context, AttributeSet attrs) {
this(context, attrs, R.attr.editTextPreferenceStyle);
this(context, attrs, androidx.preference.R.attr.editTextPreferenceStyle);
}

@SuppressWarnings("WeakerAccess")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class P implements SharedPreferences.OnSharedPreferenceChangeListener{
public static void storeThemeOrColorSchemeColors(Context context) {
ColorScheme scheme = ColorScheme.get();
TypedArray colors = context.obtainStyledAttributes(
new int[] {R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.toolbarIconColor});
new int[] {androidx.appcompat.R.attr.colorPrimary, androidx.appcompat.R.attr.colorPrimaryDark, R.attr.toolbarIconColor});
colorPrimary = scheme.colorPrimary != ColorScheme.NO_COLOR ?
scheme.colorPrimary : colors.getColor(0, ColorScheme.NO_COLOR);
colorPrimaryDark = scheme.colorPrimaryDark != ColorScheme.NO_COLOR ?
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ android.useAndroidX=true
# kapt is the annotation processor for Kotlin
kapt.incremental.apt=true

android.nonTransitiveRClass=false
android.nonTransitiveRClass=true
android.nonFinalResIds=false

0 comments on commit 80f623b

Please sign in to comment.