Bugfix: prevent crash when creating a marker (no camera or gallery application present).

Fixes #1561.
This commit is contained in:
Dennis Guse
2023-05-13 13:27:28 +02:00
parent a571c4c93b
commit 29568d0e3f
3 changed files with 16 additions and 2 deletions
@@ -12,6 +12,8 @@ public class UintUtilsTest {
assertEquals(1, UintUtils.diff(2, 1, UintUtils.UINT16_MAX));
assertEquals(3, UintUtils.diff(5, 2, UintUtils.UINT16_MAX));
assertEquals(65534, UintUtils.diff(1, 2, UintUtils.UINT16_MAX));
// assertEquals(65535, UintUtils.diff(0, 1, UintUtils.UINT16_MAX));
assertEquals(65535, UintUtils.UINT16_MAX);
assertEquals(65530, UintUtils.diff(UintUtils.UINT16_MAX, 5, UintUtils.UINT16_MAX));
}