From 4dfa474d14264caad71ed2a701960ba05245a8eb Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Wed, 1 Sep 2021 22:21:50 +0200 Subject: [PATCH] Migrate FilterType and ListSortTYpe to kotlin --- .../readrops/db/filters/{FilterType.java => FilterType.kt} | 4 ++-- db/src/main/java/com/readrops/db/filters/ListSortType.java | 6 ------ db/src/main/java/com/readrops/db/filters/ListSortType.kt | 6 ++++++ 3 files changed, 8 insertions(+), 8 deletions(-) rename db/src/main/java/com/readrops/db/filters/{FilterType.java => FilterType.kt} (82%) delete mode 100644 db/src/main/java/com/readrops/db/filters/ListSortType.java create mode 100644 db/src/main/java/com/readrops/db/filters/ListSortType.kt diff --git a/db/src/main/java/com/readrops/db/filters/FilterType.java b/db/src/main/java/com/readrops/db/filters/FilterType.kt similarity index 82% rename from db/src/main/java/com/readrops/db/filters/FilterType.java rename to db/src/main/java/com/readrops/db/filters/FilterType.kt index e971c0af..d6443501 100644 --- a/db/src/main/java/com/readrops/db/filters/FilterType.java +++ b/db/src/main/java/com/readrops/db/filters/FilterType.kt @@ -1,9 +1,9 @@ package com.readrops.db.filters; -public enum FilterType { +enum class FilterType { FEED_FILTER, FOLDER_FILER, READ_IT_LATER_FILTER, STARS_FILTER, NO_FILTER -} +} \ No newline at end of file diff --git a/db/src/main/java/com/readrops/db/filters/ListSortType.java b/db/src/main/java/com/readrops/db/filters/ListSortType.java deleted file mode 100644 index a348b03f..00000000 --- a/db/src/main/java/com/readrops/db/filters/ListSortType.java +++ /dev/null @@ -1,6 +0,0 @@ -package com.readrops.db.filters; - -public enum ListSortType { - NEWEST_TO_OLDEST, - OLDEST_TO_NEWEST -} diff --git a/db/src/main/java/com/readrops/db/filters/ListSortType.kt b/db/src/main/java/com/readrops/db/filters/ListSortType.kt new file mode 100644 index 00000000..7d039556 --- /dev/null +++ b/db/src/main/java/com/readrops/db/filters/ListSortType.kt @@ -0,0 +1,6 @@ +package com.readrops.db.filters + +enum class ListSortType { + NEWEST_TO_OLDEST, + OLDEST_TO_NEWEST +}