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

Commit 59728ce4 authored by Matthew Ng's avatar Matthew Ng
Browse files

Fix circle in the opa ring and enlarge circle when opa is disabled (1/2)

Use vector drawables to show the ring and the circle instead of using
shapes because for some devices, the scaling causes the circle to not
sit in the center. When opa is disabled, the home button will enlarge to
the full size.

Test: manual - enable assistant and look at home button on pixel devices
Change-Id: If582d5f4dd5b3c8f67156bc6b1b1e40e183e0ed2
Fixes:112603227
parent 81d43788
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -14,13 +14,13 @@
     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="oval"
    android:useLevel="false">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="28dp"
    android:height="28dp"
    android:viewportWidth="28"
    android:viewportHeight="28">

    <solid android:color="?attr/singleToneColor" />

    <size
        android:height="14dp"
        android:width="14dp" />
</shape>
    <path
        android:fillColor="?attr/singleToneColor"
        android:pathData="M 14 7 C 17.8659932488 7 21 10.1340067512 21 14 C 21 17.8659932488 17.8659932488 21 14 21 C 10.1340067512 21 7 17.8659932488 7 14 C 7 10.1340067512 10.1340067512 7 14 7 Z" />
</vector>
 No newline at end of file