diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/model/UriMatchType.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/model/UriMatchType.kt index a110f0132..9286e866b 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/model/UriMatchType.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/model/UriMatchType.kt @@ -24,16 +24,16 @@ enum class UriMatchType( */ STARTS_WITH(2), + /** + * The URIs match if they are exactly the same. + */ + EXACT(3), + /** * The URIs match if the "test" URI matches the known URI according to a specified regular * expression for the item. */ - REGULAR_EXPRESSION(3), - - /** - * The URIs match if they are exactly the same. - */ - EXACT(4), + REGULAR_EXPRESSION(4), /** * The URIs should never match. diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSourceTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSourceTest.kt index e2965db08..83352cfdf 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSourceTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSourceTest.kt @@ -520,7 +520,7 @@ class SettingsDiskSourceTest { .edit { putInt( "${defaultUriMatchTypeBaseKey}_$mockUserId", - 3, + 4, ) } val actual = settingsDiskSource.getDefaultUriMatchType(userId = mockUserId) @@ -550,7 +550,7 @@ class SettingsDiskSourceTest { 0, ) assertEquals( - 3, + 4, actual, ) }