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

Commit a63b728f 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: I607c74b7445f25916fc74ba074d0ae898005e31f
parents 3fc6f737 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);