diff options
| author | 2018-01-25 15:05:27 +0000 | |
|---|---|---|
| committer | 2018-01-25 15:05:27 +0000 | |
| commit | ffcf3ff77d02e53812de0afa1f893c7ba67db8fd (patch) | |
| tree | 6b358ab5f7c0fd083e161820802cc58e696761c6 | |
| parent | 7e73c73f8929e0899e74c5c709cb9c63537605a8 (diff) | |
| parent | c899ee547c2d4c6367196461a23373f1237602d8 (diff) | |
Merge "PrintSpooler: Fix EqualsNaN in test"
| -rw-r--r-- | packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/WorkflowTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/WorkflowTest.java b/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/WorkflowTest.java index 184e55962766..888fedbe5ab7 100644 --- a/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/WorkflowTest.java +++ b/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/WorkflowTest.java @@ -154,16 +154,16 @@ public class WorkflowTest extends BasePrintTest { @AfterClass public static void enableAnimations() throws Exception { - if (sWindowAnimationScaleBefore != Float.NaN) { + if (!Float.isNaN(sWindowAnimationScaleBefore)) { runShellCommand( "settings put global window_animation_scale " + sWindowAnimationScaleBefore); } - if (sTransitionAnimationScaleBefore != Float.NaN) { + if (!Float.isNaN(sTransitionAnimationScaleBefore)) { runShellCommand( "settings put global transition_animation_scale " + sTransitionAnimationScaleBefore); } - if (sAnimatiorDurationScaleBefore != Float.NaN) { + if (!Float.isNaN(sAnimatiorDurationScaleBefore)) { runShellCommand( "settings put global animator_duration_scale " + sAnimatiorDurationScaleBefore); } |