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

Commit 29700c20 authored by Selim Cinek's avatar Selim Cinek Committed by Automerger Merge Worker
Browse files

Merge "Fixed a test for app ops icons" into rvc-dev am: 0c33b0a8

Change-Id: I1a2d54ce48b6be26fd1bf83512bcf3c3a3c674a5
parents fca4a6e0 0c33b0a8
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -130,11 +130,19 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper {
        if (mNotificationHeader != null) {
            mNotificationHeader.setAppOpsOnClickListener(listener);
        }
        if (mAppOps != null) {
            mAppOps.setOnClickListener(listener);
        }
        if (mCameraIcon != null) {
            mCameraIcon.setOnClickListener(listener);
        }
        if (mMicIcon != null) {
            mMicIcon.setOnClickListener(listener);
        }
        if (mOverlayIcon != null) {
            mOverlayIcon.setOnClickListener(listener);
        }
    }

    /**
     * Shows or hides 'app op in use' icons based on app usage.
+3 −3
Original line number Diff line number Diff line
@@ -76,13 +76,13 @@ public class NotificationContentViewTest extends SysuiTestCase {
    @Test
    @UiThreadTest
    public void testShowAppOpsIcons() {
        View mockContracted = mock(View.class);
        View mockContracted = mock(NotificationHeaderView.class);
        when(mockContracted.findViewById(com.android.internal.R.id.mic))
                .thenReturn(mockContracted);
        View mockExpanded = mock(View.class);
        View mockExpanded = mock(NotificationHeaderView.class);
        when(mockExpanded.findViewById(com.android.internal.R.id.mic))
                .thenReturn(mockExpanded);
        View mockHeadsUp = mock(View.class);
        View mockHeadsUp = mock(NotificationHeaderView.class);
        when(mockHeadsUp.findViewById(com.android.internal.R.id.mic))
                .thenReturn(mockHeadsUp);