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

Commit 8d06d63f authored by Alex Johnston's avatar Alex Johnston
Browse files

Remove credential management app Settings

* Update string and icon
* Flip icon if languate is RTL e.g. Arabic
* Add dialog when 'Remove app' is selected
* Add Material Next theme to dialog
* Update string terminology when removing a
  CA or user certificate to from 'remove'
  to 'uninstall'
* Final UI tweaks to RequestManageCredentials screen

Screenshots
* Light mode: https://screenshot.googleplex.com/66QKFLhtn6ZueZQ
* Dark mode: https://screenshot.googleplex.com/9kkTaaDV6CiHudF
* RTL: https://screenshot.googleplex.com/AkwSibXakARYM8H
* Request light mode: https://screenshot.googleplex.com/6n6raBQ8drXRHcU
* Request dark mode: https://screenshot.googleplex.com/3bmWNoTwE6JBqAX

Bug: 189416800
Test: atest CredentialManagementAppButtonsControllerTest
      manual testing with TestDPC
Change-Id: I5450d33603418930e92b03c4447aaa1095afe9a3
parent a3f28b03
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1485,6 +1485,7 @@
        </activity>

        <activity android:name=".security.RequestManageCredentials"
                  android:theme="@style/Theme.SubSettings"
                  android:exported="true">
            <intent-filter>
                <action android:name="android.security.MANAGE_CREDENTIALS"/>
+25 −0
Original line number Diff line number Diff line
<!--
  ~ 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.
  -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
    <path
        android:fillColor="@android:color/white"
        android:pathData="M6,13.5C6,11.57 7.75,10 9.9,10h6.27l-2.59,2.59L15,14l5,-5 -5,-5 -1.41,1.41L16.17,8H9.9C6.65,8 4,10.47 4,13.5S6.65,19 9.9,19H17v-2H9.9C7.75,17 6,15.43 6,13.5z"/>
</vector>
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -123,11 +123,12 @@
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/request_manage_credentials_more"
                    android:textColor="?android:attr/colorBackground"
                    android:theme="@style/Theme.CollapsingToolbar.Settings"
                    app:backgroundTint="?android:attr/colorAccent"
                    app:elevation="3dp"
                    app:icon="@drawable/ic_arrow_downward"
                    app:iconTint="?android:attr/textColorPrimary"
                    app:iconTint="?android:attr/colorBackground"
                    app:layout_anchor="@id/apps_list"
                    app:layout_anchorGravity="bottom|center" />

+2 −1
Original line number Diff line number Diff line
@@ -97,11 +97,12 @@
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/request_manage_credentials_more"
                        android:textColor="?android:attr/colorBackground"
                        android:theme="@style/Theme.CollapsingToolbar.Settings"
                        app:backgroundTint="?android:attr/colorAccent"
                        app:elevation="3dp"
                        app:icon="@drawable/ic_arrow_downward"
                        app:iconTint="?android:attr/textColorPrimary"
                        app:iconTint="?android:attr/colorBackground"
                        app:layout_anchor="@id/apps_list"
                        app:layout_anchorGravity="bottom|center" />

+2 −1
Original line number Diff line number Diff line
@@ -67,11 +67,12 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/request_manage_credentials_more"
        android:textColor="?android:attr/colorBackground"
        app:layout_anchor="@id/apps_list"
        app:layout_anchorGravity="bottom|center"
        app:elevation="3dp"
        app:icon="@drawable/ic_arrow_downward"
        app:iconTint="?android:attr/textColorPrimary"
        app:iconTint="?android:attr/colorBackground"
        app:backgroundTint="?android:attr/colorAccent"
        android:theme="@style/Theme.CollapsingToolbar.Settings"/>

Loading