mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Expose IS_RUNNING_IN_TEST_HARNESS as static method.
This variable is now mutable, making the uppercase format misleading. For instance, users might assume they can use this value in other immutable properties, when they really should be accessing the latest value every time they need it. Context: https://source.android.com/docs/setup/contribute/code-style#follow-field-naming-conventions Test: Manual Bug: 271160958 Change-Id: Iaaa51d9153cb8a7d686c72e1210b1948029dcfd5
This commit is contained in:
@@ -139,11 +139,11 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
// TODO(b/258604917): When running in test harness, use !sTransientTaskbarStatusForTests
|
||||
// once tests are updated to expect new persistent behavior such as not allowing long press
|
||||
// to stash.
|
||||
if (!Utilities.IS_RUNNING_IN_TEST_HARNESS && FORCE_PERSISTENT_TASKBAR.get()) {
|
||||
if (!Utilities.isRunningInTestHarness() && FORCE_PERSISTENT_TASKBAR.get()) {
|
||||
return false;
|
||||
}
|
||||
return getInfo().navigationMode == NavigationMode.NO_BUTTON
|
||||
&& (Utilities.IS_RUNNING_IN_TEST_HARNESS
|
||||
&& (Utilities.isRunningInTestHarness()
|
||||
? sTransientTaskbarStatusForTests
|
||||
: ENABLE_TRANSIENT_TASKBAR.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user