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

Commit b98eea4c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make "minimal" pattern layout sw320dp" into pi-dev

parents 39b54ea1 b0e88dbb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ public class ChooseLockPatternTest {
        assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
    }

    @Config(qualifiers = "sw300dp")
    @Test
    public void smallScreens_shouldHideIcon() {
        ChooseLockPattern activity = createActivity(true);
+2 −5
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.settings.password;

import static com.google.common.truth.Truth.assertThat;

import static org.robolectric.RuntimeEnvironment.application;

import android.app.Activity;
@@ -46,10 +47,6 @@ import org.robolectric.annotation.Config;
import org.robolectric.shadows.ShadowAlertDialog;
import org.robolectric.shadows.ShadowPackageManager;
import org.robolectric.util.ReflectionHelpers;
import org.robolectric.util.ReflectionHelpers.ClassParameter;

import java.util.Collections;
import java.util.List;

@RunWith(SettingsRobolectricTestRunner.class)
@Config(shadows = {
@@ -89,7 +86,6 @@ public class SetupChooseLockPatternTest {
        assertThat(componentEnabled).isEqualTo(PackageManager.COMPONENT_ENABLED_STATE_ENABLED);
    }

    @Config(qualifiers = "sw400dp")
    @Test
    public void selectPattern_shouldHideOptionsButton() {
        Button button = mActivity.findViewById(R.id.screen_lock_options);
@@ -114,6 +110,7 @@ public class SetupChooseLockPatternTest {
        assertThat(count).named("List items shown").isEqualTo(3);
    }

    @Config(qualifiers = "sw300dp")
    @Test
    public void smallScreens_shouldHideScreenLockOptions() {
        Button button = mActivity.findViewById(R.id.screen_lock_options);