Skip to content

Commit

Permalink
feat(res): add default system subtype (slogan)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck authored and Bambooin committed Oct 23, 2021
1 parent afc3f2f commit fd687dd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,5 @@
<string name="pref__system_default">系统默认</string>
<string name="keyboard__key_swipe_travel_title">触发滑动手势的最短距离</string>
<string name="other__click_candidate_and_commit">点击候选词时直接上屏</string>
<string name="trime_app_slogan">击响中文之韵</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@
<string name="pref__system_default">系統預設</string>
<string name="keyboard__key_swipe_travel_title">觸發滑動手勢的最短距離</string>
<string name="other__click_candidate_and_commit">點擊候選詞時直接上屏</string>
<string name="trime_app_slogan">擊響中文之韻</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@
<string name="pref__system_default">System Default</string>
<string name="keyboard__key_swipe_travel_title">Min travel for gesture</string>
<string name="other__click_candidate_and_commit">Click candidate and commit directly</string>
<string name="trime_app_slogan">TRimes with Your Keystrokes</string>
</resources>
12 changes: 10 additions & 2 deletions app/src/main/res/xml/method.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,13 @@
-->

<input-method xmlns:android="http://schemas.android.com/apk/res/android"
android:settingsActivity="com.osfans.trime.settings.PrefMainActivity"
/>
android:settingsActivity="com.osfans.trime.settings.PrefMainActivity">

<!-- Add default system subtype so we can properly set the icon and label -->
<subtype android:label="@string/trime_app_slogan"
android:name="@string/trime_app_name"
android:icon="@mipmap/ic_app_icon"
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="AsciiCapable" />

</input-method>

0 comments on commit fd687dd

Please sign in to comment.