[android] improve scale + rotation behavior

This commit is contained in:
Łukasz Paczos
2019-07-16 12:46:27 +02:00
committed by Łukasz Paczos
parent 18971395d6
commit 3e73e4d49f
5 changed files with 103 additions and 51 deletions

View File

@@ -341,17 +341,17 @@ public class UiSettingsTest {
}
@Test
public void testIncreaseRotateThresholdWhenScalingEnabled() {
uiSettings.setIncreaseRotateThresholdWhenScaling(true);
assertEquals("Rotate threshold increase should be enabled", true,
uiSettings.isIncreaseRotateThresholdWhenScaling());
public void testDisableRotateWhenScalingEnabled() {
uiSettings.setDisableRotateWhenScaling(true);
assertEquals("Rotate disabling should be enabled", true,
uiSettings.isDisableRotateWhenScaling());
}
@Test
public void testIncreaseRotateThresholdWhenScalingDisabled() {
uiSettings.setIncreaseRotateThresholdWhenScaling(false);
assertEquals("Rotate threshold increase should be disabled", false,
uiSettings.isIncreaseRotateThresholdWhenScaling());
public void testDisableRotateWhenScalingDisabled() {
uiSettings.setDisableRotateWhenScaling(false);
assertEquals("Rotate disabling should be disabled", false,
uiSettings.isDisableRotateWhenScaling());
}
@Test