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

Commit fdc3630b authored by wilsonshih's avatar wilsonshih
Browse files

Consolidate the starting surface icon size to framework

Let the icon size can be read accorss Launcher and WMShell.
Devices can overlay these values if needed.

Bug: 177264697
Test: Manual verify icon size on splash screen.
Change-Id: Ia9f76cd3f4a9869ae2966d59d9204e4df94119e5
parent 4d225a0e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -939,4 +939,8 @@
    <!-- 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>

    <!-- The width/height of the icon view on staring surface. -->
    <dimen name="starting_surface_icon_size">160dp</dimen>
    <!-- The default width/height of the icon on the spec of adaptive icon drawable. -->
    <dimen name="starting_surface_default_icon_size">108dp</dimen>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -4382,4 +4382,7 @@

  <java-symbol type="bool" name="config_supportsMicToggle" />
  <java-symbol type="bool" name="config_supportsCamToggle" />

  <java-symbol type="dimen" name="starting_surface_icon_size" />
  <java-symbol type="dimen" name="starting_surface_default_icon_size" />
</resources>
+0 −5
Original line number Diff line number Diff line
@@ -179,11 +179,6 @@
        individual_bubble_size + some padding. -->
    <dimen name="bubble_stack_user_education_side_inset">72dp</dimen>

    <!-- The width/height of the icon view on staring surface. -->
    <dimen name="starting_surface_icon_size">160dp</dimen>
    <!-- The default width/height of the icon on the spec of adaptive icon drawable. -->
    <dimen name="default_icon_size">108dp</dimen>

    <!-- The width/height of the size compat restart button. -->
    <dimen name="size_compat_button_size">48dp</dimen>

+2 −2
Original line number Diff line number Diff line
@@ -124,9 +124,9 @@ public class SplashscreenContentDrawer {

    private void updateDensity() {
        mIconSize = mContext.getResources().getDimensionPixelSize(
                com.android.wm.shell.R.dimen.starting_surface_icon_size);
                com.android.internal.R.dimen.starting_surface_icon_size);
        mDefaultIconSize = mContext.getResources().getDimensionPixelSize(
                com.android.wm.shell.R.dimen.default_icon_size);
                com.android.internal.R.dimen.starting_surface_default_icon_size);
        mBrandingImageWidth = mContext.getResources().getDimensionPixelSize(
                com.android.wm.shell.R.dimen.starting_surface_brand_image_width);
        mBrandingImageHeight = mContext.getResources().getDimensionPixelSize(