Merge pull request #2688

This commit is contained in:
Patryk Michalik
2022-06-06 16:33:20 +02:00
committed by GitHub
2 changed files with 6 additions and 8 deletions

View File

@@ -149,13 +149,11 @@ fun HomeScreenPreferences() {
)
}
}
if (!Utilities.ATLEAST_S) {
PreferenceGroup(heading = stringResource(id = R.string.widget_button_text)) {
SwitchPreference(
adapter = prefs2.roundedWidgets.getAdapter(),
label = stringResource(id = R.string.force_rounded_widgets),
)
}
PreferenceGroup(heading = stringResource(id = R.string.widget_button_text)) {
SwitchPreference(
adapter = prefs2.roundedWidgets.getAdapter(),
label = stringResource(id = R.string.force_rounded_widgets),
)
}
}
}

View File

@@ -75,7 +75,7 @@ public class RoundedCornerEnforcement {
/** Check if the app widget is in the deny list. */
public static boolean isRoundedCornerEnabled() {
return Utilities.ATLEAST_S || sRoundedCornerEnabled;
return sRoundedCornerEnabled;
}
/**