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

Commit 1742bc0f authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Implemented new Focus states for notifications row

UI Specs - go/notification-hover-states
Screenshots comparison - https://drive.google.com/drive/folders/194BxbegKSepTlCeHN0lzrefqaIbGC5ae?usp=sharing

Fixes: 329250144
Flag: None
Test: Manual test in test guide go/sysui-pkt-manual-testing
Change-Id: I1e76593495e0499d914691155917f80b2050560e
parent 274c515f
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 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.
  -->

<selector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:state_focused="true" android:color="?androidprv:attr/materialColorSecondary" />
    <item android:color="@color/transparent" />
</selector>
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
@@ -28,4 +28,9 @@
            <solid android:color="@color/notification_state_color_default" />
        </shape>
    </item>
    <item>
        <shape>
            <stroke android:width="3dp" android:color="@color/notification_focus_overlay_color"/>
        </shape>
    </item>
</layer-list>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -2068,6 +2068,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        // Remove views that don't translate
        mTranslateableViews.remove(mChildrenContainerStub);
        mTranslateableViews.remove(mGutsStub);
        // We don't handle focus highlight in this view, it's done in background drawable instead
        setDefaultFocusHighlightEnabled(false);
    }

    /**