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

Commit cdd02c5c authored by Steven Ng's avatar Steven Ng
Browse files

Update widget suspended layout

1. set app icon to 48dpx48dp
2. set rounded corners of the background to 28dp

Test: Turn off work profile and observe the work profile widget layout.
Bug: 187828998
Change-Id: Ic6bcac170fdd66f440b2c119620933d70ec9c2c0
parent 56d59c65
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <solid android:color="?android:attr/colorSurfaceVariant" />
    <corners android:radius="@dimen/system_app_widget_background_radius" />
</shape>
+3 −3
Original line number Diff line number Diff line
@@ -18,14 +18,14 @@ Copyright (C) 2015 The Android Open Source Project
    android:id="@+id/work_widget_mask_frame"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?android:attr/colorSurfaceVariant"
    android:background="@drawable/work_widget_mask_view_background"
    android:importantForAccessibility="noHideDescendants"
    android:clickable="true">

    <com.android.internal.widget.DisableImageView
        android:id="@+id/work_widget_app_icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_gravity="center"
        android:clickable="false" />