Fix testNonIndexableKeys_existInXmlLayout
This test is for LanguageAndInputSettings UI. Hence, we should set flag "SETTINGS_NEW_KEYBOARD_UI" to false Bug: 280018738 Test: make RunSettingsRoboTests -j56 ROBOTEST_FILTER=LanguageAndInputSettingsTest Change-Id: Ida91a23bb576c81f9618406d54c1d892b23eb4fa
This commit is contained in:
@@ -32,6 +32,7 @@ import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.hardware.input.InputManager;
|
||||
import android.os.UserManager;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.view.autofill.AutofillManager;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.view.textservice.TextServicesManager;
|
||||
@@ -119,6 +120,7 @@ public class LanguageAndInputSettingsTest {
|
||||
final Resources res = spy(RuntimeEnvironment.application.getResources());
|
||||
final InputManager inputManager = mock(InputManager.class);
|
||||
final TextServicesManager textServicesManager = mock(TextServicesManager.class);
|
||||
FeatureFlagUtils.setEnabled(context, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_UI, false);
|
||||
when(inputManager.getInputDeviceIds()).thenReturn(new int[0]);
|
||||
doReturn(inputManager).when(context).getSystemService(Context.INPUT_SERVICE);
|
||||
doReturn(textServicesManager).when(context)
|
||||
|
Reference in New Issue
Block a user