Skip to content

Commit

Permalink
[MOD] : #289 상수 companion object로 분리
Browse files Browse the repository at this point in the history
* PR 대응
  • Loading branch information
dongx0915 committed Dec 14, 2023
1 parent b197390 commit ea89969
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class RunnectDeveloperActivity : AppCompatActivity(R.layout.activity_runnect_dev

class RunnectDeveloperFragment : PreferenceFragmentCompat() {

private val CLIPBOARD_LABEL = "keyword"

private val clipboardManager: ClipboardManager? by lazy {
context?.getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
}
Expand Down Expand Up @@ -66,7 +64,6 @@ class RunnectDeveloperActivity : AppCompatActivity(R.layout.activity_runnect_dev

title = currentApi.name
setValueIndex(selectIndex)

setOnPreferenceChangeListener { preference, newValue ->
val selectItem = newValue.toString()
this.title = selectItem
Expand Down Expand Up @@ -161,5 +158,9 @@ class RunnectDeveloperActivity : AppCompatActivity(R.layout.activity_runnect_dev
exitProcess(0)
}
}

companion object {
private const val CLIPBOARD_LABEL = "keyword"
}
}
}

0 comments on commit ea89969

Please sign in to comment.