Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc9a1b9d authored by Shamali Patwa's avatar Shamali Patwa Committed by Android (Google) Code Review
Browse files

Merge "Add flag for changing the system appwidget corner radius" into main

parents f4bef470 2e28de1c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -74,3 +74,12 @@ flag {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
  name: "use_smaller_app_widget_radius"
  namespace: "app_widgets"
  description: "Updates system corner radius for app widgets to 24.dp instead of 28.dp"
  bug: "373351337"
  is_exported: true
  is_fixed_read_only: true
}
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ android_app {
    flags_packages: [
        "android.app.appfunctions.flags-aconfig",
        "android.app.contextualsearch.flags-aconfig",
        "android.appwidget.flags-aconfig",
        "android.content.pm.flags-aconfig",
        "android.provider.flags-aconfig",
        "camera_platform_flags",
+7 −4
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
** limitations under the License.
*/
-->
<resources>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- The width that is used when creating thumbnails of applications. -->
    <dimen name="thumbnail_width">192dp</dimen>
    <!-- The height that is used when creating thumbnails of applications. -->
@@ -1037,9 +1037,12 @@
    <dimen name="controls_thumbnail_image_max_width">280dp</dimen>

    <!-- System-provided radius for the background view of app widgets. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_background_radius">28dp</dimen>
    <!-- System-provided radius for inner views on app widgets. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_inner_radius">20dp</dimen>
    <dimen name="system_app_widget_background_radius" android:featureFlag="!android.appwidget.flags.use_smaller_app_widget_radius">28dp</dimen>
    <dimen name="system_app_widget_background_radius" android:featureFlag="android.appwidget.flags.use_smaller_app_widget_radius">24dp</dimen>
    <!-- System-provided radius for inner views on app widgets that are positioned 8dp within the widget background view. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_inner_radius" android:featureFlag="!android.appwidget.flags.use_smaller_app_widget_radius">20dp</dimen>
    <!-- System-provided radius for inner views on app widgets that are positioned 8dp within the widget background view. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_inner_radius" android:featureFlag="android.appwidget.flags.use_smaller_app_widget_radius">16dp</dimen>
    <!-- System-provided padding for inner views on app widgets. The resolved value of this resource may change at runtime. @removed -->
    <dimen name="__removed_system_app_widget_internal_padding">16dp</dimen>