Skip to content

Commit

Permalink
refactor: remove unused preference entries
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Sep 1, 2024
1 parent 07bfdce commit 2f5b3ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions app/src/main/java/com/osfans/trime/data/prefs/AppPrefs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ class AppPrefs(
const val SWIPE_TIME_HI = "keyboard__key_swipe_time_hi"
const val LONG_PRESS_TIMEOUT = "keyboard__key_long_press_timeout"
const val REPEAT_INTERVAL = "keyboard__key_repeat_interval"
const val DELETE_CANDIDATE_TIMEOUT = "keyboard__key_delete_candidate_timeout"
const val SHOULD_LONG_CLICK_DELETE_CANDIDATE = "keyboard__long_click_delete_candidate"
}

var inlinePreedit by enum(INLINE_PREEDIT_MODE, InlinePreeditMode.PREVIEW)
Expand Down Expand Up @@ -171,8 +169,6 @@ class AppPrefs(
val swipeTimeHi by int(SWIPE_TIME_HI, 80)
val longPressTimeout by int(LONG_PRESS_TIMEOUT, 400)
val repeatInterval by int(REPEAT_INTERVAL, 50)
val deleteCandidateTimeout by int(DELETE_CANDIDATE_TIMEOUT, 2000)
val shouldLongClickDeleteCandidate by bool(SHOULD_LONG_CLICK_DELETE_CANDIDATE, false)
var isSpeakKey by bool(SPEAK_KEY_PRESS_ENABLED, false)
var isSpeakCommit by bool(SPEAK_COMMIT_ENABLED, false)
}
Expand Down
20 changes: 0 additions & 20 deletions app/src/main/res/xml/keyboard_preference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:title="@string/keyboard__candidate_page_size"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />

<SwitchPreferenceCompat
android:defaultValue="false"
android:key="keyboard__long_click_delete_candidate"
android:title="@string/keyboard__long_click_delete_candidate_title"
app:iconSpaceReserved="false" />

<com.osfans.trime.ui.components.DialogSeekBarPreference
android:dependency="keyboard__long_click_delete_candidate"
android:defaultValue="2000"
android:key="keyboard__key_delete_candidate_timeout"
android:title="@string/keyboard__delete_candidate_timeout_title"
android:widgetLayout="@layout/seek_bar_dialog"
app:allowDividerAbove="false"
app:iconSpaceReserved="false"
app:max="5000"
app:min="500"
app:seekBarIncrement="500"
app:unit="@string/unit__time_ms"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>

<PreferenceCategory
Expand Down

0 comments on commit 2f5b3ce

Please sign in to comment.