Skip to content

Commit

Permalink
bump + added file for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LagradOst committed Aug 10, 2023
1 parent 30175b3 commit ea27400
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "com.lagradost.quicknovel"
minSdkVersion 22
targetSdkVersion 33
versionCode 50
versionName "3.1.0"
versionCode 51
versionName "3.1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
16 changes: 16 additions & 0 deletions app/src/main/java/com/lagradost/quicknovel/ui/ReadingType.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.lagradost.quicknovel.ui

import android.content.pm.ActivityInfo
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.lagradost.quicknovel.R

enum class ReadingType(val prefValue: Int, @StringRes val stringRes: Int) {
DEFAULT(0, R.string.default_text),
INF_SCROLL(1, R.string.inf_scroll),
BTT_SCROLL(2, R.string.button_scroll);

companion object {
fun fromSpinner(position: Int?) = values().find { value -> value.prefValue == position } ?: DEFAULT
}
}

0 comments on commit ea27400

Please sign in to comment.