Skip to content

Commit

Permalink
Merge pull request #5 from YuS1aN/dev
Browse files Browse the repository at this point in the history
1. 更新版本号 1.2.1
  • Loading branch information
YuS1aN authored Sep 8, 2024
2 parents 6740777 + 1b80fcf commit 147f0c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "me.kbai.zhenxunui"
minSdk 23
targetSdk 34
versionCode 2
versionName "1.2.0"
versionCode 3
versionName "1.2.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/me/kbai/zhenxunui/model/BlockType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import androidx.annotation.StringRes
import com.google.gson.annotations.SerializedName
import me.kbai.zhenxunui.R

enum class BlockType(val paramName: String, @StringRes val nameResId: Int) {
@SerializedName("all")
ALL("all", R.string.block_type_all),
enum class BlockType(@StringRes val nameResId: Int) {
@SerializedName("ALL")
ALL(R.string.block_type_all),

@SerializedName("private")
PRIVATE("private", R.string.block_type_private),
@SerializedName("PRIVATE")
PRIVATE(R.string.block_type_private),

@SerializedName("group")
GROUP("group", R.string.block_type_group)
@SerializedName("GROUP")
GROUP(R.string.block_type_group)
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ class PluginConfigAdapter(
tabs.forEach { addTab(it) }

clearOnTabSelectedListeners()
addOnTabSelectedListener {
addOnTabSelectedListener(selected = {
mEditableData.blockType = if (swEnabled.isChecked) null else it.tag as BlockType
}
})

if (mEditableData.blockType != null) {
selectTab(tabs.find { tag == mEditableData.blockType })
selectTab(tabs.find { it.tag == mEditableData.blockType })
}
}

Expand Down

0 comments on commit 147f0c4

Please sign in to comment.