mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix unit test failures
Change-Id: I1d66a0124961d524f83f7895a2c09e0ee2c1aab4
This commit is contained in:
parent
1290399123
commit
b3b1ba8d4a
@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.inputmethod.latin.common;
|
||||
|
||||
import com.android.inputmethod.annotations.UsedForTesting;
|
||||
|
||||
public final class Constants {
|
||||
public static final class Color {
|
||||
/**
|
||||
@ -305,11 +307,13 @@ public final class Constants {
|
||||
public static final int SCREEN_METRICS_LARGE_TABLET = 2;
|
||||
public static final int SCREEN_METRICS_SMALL_TABLET = 3;
|
||||
|
||||
@UsedForTesting
|
||||
public static boolean isPhone(final int screenMetrics) {
|
||||
return screenMetrics == SCREEN_METRICS_SMALL_PHONE
|
||||
|| screenMetrics == SCREEN_METRICS_LARGE_PHONE;
|
||||
}
|
||||
|
||||
@UsedForTesting
|
||||
public static boolean isTablet(final int screenMetrics) {
|
||||
return screenMetrics == SCREEN_METRICS_SMALL_TABLET
|
||||
|| screenMetrics == SCREEN_METRICS_LARGE_TABLET;
|
||||
|
Loading…
Reference in New Issue
Block a user