diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-19 21:12:02 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-08-19 21:12:02 -0700 |
commit | 8c178bd82d75ef237c97863fae555ca0346e7352 (patch) | |
tree | 0d532c6ed127110d1bf66d4522f008419c900b44 /app/src/main/kotlin/com/pitchedapps/frost/facebook | |
parent | 1240e2663413b56c5b97c8ff40cb5c1bdc2df23b (diff) | |
download | frost-8c178bd82d75ef237c97863fae555ca0346e7352.tar.gz frost-8c178bd82d75ef237c97863fae555ca0346e7352.tar.bz2 frost-8c178bd82d75ef237c97863fae555ca0346e7352.zip |
Refactor enums and optimize imports
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/FeedSort.kt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FeedSort.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FeedSort.kt deleted file mode 100644 index f3073f6d..00000000 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FeedSort.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.pitchedapps.frost.facebook - -import android.support.annotation.StringRes -import com.pitchedapps.frost.R - -/** - * Created by Allan Wang on 2017-06-23. - */ -enum class FeedSort(@StringRes val textRes: Int) { - DEFAULT(R.string.kau_default), - MOST_RECENT(R.string.most_recent), - TOP(R.string.top_stories); - - companion object { - val values = values() //save one instance - operator fun invoke(index: Int) = values[index] - } -}
\ No newline at end of file |