show some russian letters on the dialpad too on russian devices

This commit is contained in:
tibbi
2021-05-22 20:21:20 +02:00
parent 0f60f91101
commit 59c808cfd1
3 changed files with 18 additions and 0 deletions

View File

@@ -46,6 +46,17 @@ class DialpadActivity : SimpleActivity() {
speedDialValues = config.getSpeedDialValues()
privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
if (Locale.getDefault().language == "ru") {
dialpad_2_letters.append("\nАБВГ")
dialpad_3_letters.append("\nДЕЁЖЗ")
dialpad_4_letters.append("\nИЙКЛ")
dialpad_5_letters.append("\nМНОП")
dialpad_6_letters.append("\nРСТУ")
dialpad_7_letters.append("\nФХЦЧ")
dialpad_8_letters.append("\nШЩЪЫ")
dialpad_9_letters.append("\nЬЭЮЯ")
}
dialpad_0_holder.setOnClickListener { dialpadPressed('0', it) }
dialpad_1_holder.setOnClickListener { dialpadPressed('1', it) }
dialpad_2_holder.setOnClickListener { dialpadPressed('2', it) }

View File

@@ -58,6 +58,7 @@
android:layout_below="@+id/dialpad_2"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="ABC" />
</RelativeLayout>
@@ -88,6 +89,7 @@
android:layout_below="@+id/dialpad_3"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="DEF" />
</RelativeLayout>
@@ -118,6 +120,7 @@
android:layout_below="@+id/dialpad_4"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="GHI" />
</RelativeLayout>
@@ -147,6 +150,7 @@
android:layout_below="@+id/dialpad_5"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="JKL" />
</RelativeLayout>
@@ -208,6 +212,7 @@
android:layout_below="@+id/dialpad_7"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="PQRS" />
</RelativeLayout>
@@ -237,6 +242,7 @@
android:layout_below="@+id/dialpad_8"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/medium_margin"
android:gravity="center_horizontal"
android:text="TUV" />
</RelativeLayout>

View File

@@ -3,6 +3,7 @@
<style name="AppTheme" parent="AppTheme.Base" />
<style name="DialpadNumberStyle">
<item name="android:includeFontPadding">false</item>
<item name="android:textSize">@dimen/dialpad_text_size</item>
</style>