Added swipe to answer an incoming call (#127)

fix #127
This commit is contained in:
Agnieszka C 2021-12-01 12:03:53 +01:00
parent 2bd7da2921
commit f8d4cb387e
30 changed files with 179 additions and 23 deletions

View File

@ -11,6 +11,7 @@ import android.os.Handler
import android.os.PowerManager
import android.telecom.Call
import android.telecom.CallAudioState
import android.view.MotionEvent
import android.view.WindowManager
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.MINUTE_SECONDS
@ -45,6 +46,7 @@ class CallActivity : SimpleActivity() {
private var callDuration = 0
private val callContactAvatarHelper by lazy { CallContactAvatarHelper(this) }
private val callDurationHelper by lazy { (application as App).callDurationHelper }
private var dragDownX = 0f
override fun onCreate(savedInstanceState: Bundle?) {
supportActionBar?.hide()
@ -94,12 +96,19 @@ class CallActivity : SimpleActivity() {
}
private fun initButtons() {
call_decline.setOnClickListener {
endCall()
}
if (config.enableSwipeToAnswer) {
handleSwipe()
} else {
call_draggable.beGone()
call_draggable_background.beGone()
call_accept.setOnClickListener {
acceptCall()
call_decline.setOnClickListener {
endCall()
}
call_accept.setOnClickListener {
acceptCall()
}
}
call_toggle_microphone.setOnClickListener {
@ -145,6 +154,55 @@ class CallActivity : SimpleActivity() {
call_sim_id.setTextColor(config.textColor.getContrastColor())
}
@SuppressLint("ClickableViewAccessibility")
private fun handleSwipe() {
var minDragX = 0f
var maxDragX = 0f
var initialDraggableX = 0f
call_accept.onGlobalLayout {
minDragX = call_decline.left.toFloat()
maxDragX = call_accept.left.toFloat()
initialDraggableX = call_draggable.left.toFloat()
}
call_draggable.setOnTouchListener { v, event ->
when (event.action) {
MotionEvent.ACTION_DOWN -> {
dragDownX = event.x
call_draggable_background.animate().alpha(0f)
}
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
dragDownX = 0f
call_draggable.animate().x(initialDraggableX).withEndAction {
call_draggable_background.animate().alpha(0.2f)
}
call_draggable.setImageDrawable(getDrawable(R.drawable.ic_phone_down_vector))
}
MotionEvent.ACTION_MOVE -> {
call_draggable.x = Math.min(maxDragX, Math.max(minDragX, event.rawX - dragDownX))
when {
call_draggable.x >= maxDragX - 50f -> {
call_draggable.performHapticFeedback()
acceptCall()
}
call_draggable.x <= minDragX + 50f -> {
call_draggable.performHapticFeedback()
endCall()
}
call_draggable.x > initialDraggableX -> {
call_draggable.setImageDrawable(getDrawable(R.drawable.ic_phone_green_vector))
}
call_draggable.x <= initialDraggableX -> {
call_draggable.setImageDrawable(getDrawable(R.drawable.ic_phone_down_red_vector))
}
}
}
}
true
}
}
private fun dialpadPressed(char: Char) {
CallManager.keypad(char)
dialpad_input.addCharacter(char)

View File

@ -40,6 +40,7 @@ class SettingsActivity : SimpleActivity() {
setupStartNameWithSurname()
setupShowCallConfirmation()
setupDisableProximitySensor()
setupEnableSwipeToAnswer()
updateTextColors(settings_holder)
invalidateOptionsMenu()
@ -220,4 +221,12 @@ class SettingsActivity : SimpleActivity() {
config.disableProximitySensor = settings_disable_proximity_sensor.isChecked
}
}
private fun setupEnableSwipeToAnswer() {
settings_enable_swipe_to_answer.isChecked = config.enableSwipeToAnswer
settings_enable_swipe_to_answer_holder.setOnClickListener {
settings_enable_swipe_to_answer.toggle()
config.enableSwipeToAnswer = settings_enable_swipe_to_answer.isChecked
}
}
}

View File

@ -52,6 +52,10 @@ class Config(context: Context) : BaseConfig(context) {
get() = prefs.getBoolean(DISABLE_PROXIMITY_SENSOR, false)
set(disableProximitySensor) = prefs.edit().putBoolean(DISABLE_PROXIMITY_SENSOR, disableProximitySensor).apply()
var enableSwipeToAnswer: Boolean
get() = prefs.getBoolean(ENABLE_SWIPE_TO_ANSWER, false)
set(enableSwipeToAnswer) = prefs.edit().putBoolean(ENABLE_SWIPE_TO_ANSWER, enableSwipeToAnswer).apply()
var showTabs: Int
get() = prefs.getInt(SHOW_TABS, ALL_TABS_MASK)
set(showTabs) = prefs.edit().putInt(SHOW_TABS, showTabs).apply()

View File

@ -10,6 +10,7 @@ const val REMEMBER_SIM_PREFIX = "remember_sim_"
const val GROUP_SUBSEQUENT_CALLS = "group_subsequent_calls"
const val OPEN_DIAL_PAD_AT_LAUNCH = "open_dial_pad_at_launch"
const val DISABLE_PROXIMITY_SENSOR = "disable_proximity_sensor"
const val ENABLE_SWIPE_TO_ANSWER = "enable_swipe_to_answer"
const val SHOW_TABS = "show_tabs"
const val ALL_TABS_MASK = TAB_CONTACTS or TAB_FAVORITES or TAB_CALL_HISTORY

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="@android:color/white"/>
<size
android:width="@dimen/incoming_call_button_size"
android:height="@dimen/incoming_call_button_size"/>
</shape>

View File

@ -160,14 +160,16 @@
android:id="@+id/call_decline"
android:layout_width="@dimen/incoming_call_button_size"
android:layout_height="@dimen/incoming_call_button_size"
android:clickable="false"
android:padding="@dimen/medium_margin"
android:contentDescription="@string/decline_call"
android:src="@drawable/ic_call_decline"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.15"
app:layout_constraintBottom_toBottomOf="@+id/call_draggable"
app:layout_constraintEnd_toStartOf="@+id/call_draggable"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintVertical_bias="0.85"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.85" />
app:layout_constraintTop_toTopOf="@+id/call_draggable" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/call_decline_label"
@ -180,18 +182,49 @@
app:layout_constraintStart_toStartOf="@+id/call_decline"
app:layout_constraintTop_toBottomOf="@+id/call_decline" />
<ImageView
android:id="@+id/call_draggable_background"
android:layout_width="@dimen/incoming_call_button_size"
android:layout_height="@dimen/incoming_call_button_size"
android:layout_marginBottom="@dimen/activity_margin"
android:alpha="0.2"
android:padding="@dimen/medium_margin"
android:src="@drawable/pulsing_background"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/call_accept"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.85"
app:layout_constraintStart_toEndOf="@+id/call_decline" />
<ImageView
android:id="@+id/call_draggable"
android:layout_width="@dimen/incoming_call_button_size"
android:layout_height="@dimen/incoming_call_button_size"
android:layout_marginBottom="@dimen/activity_margin"
android:padding="@dimen/activity_margin"
android:src="@drawable/ic_phone_down_vector"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/call_accept"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.85"
app:layout_constraintStart_toEndOf="@+id/call_decline" />
<ImageView
android:id="@+id/call_accept"
android:layout_width="@dimen/incoming_call_button_size"
android:layout_height="@dimen/incoming_call_button_size"
android:clickable="false"
android:padding="@dimen/medium_margin"
android:contentDescription="@string/accept_call"
android:src="@drawable/ic_call_accept"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toBottomOf="@+id/call_draggable"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.85"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.85" />
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintVertical_bias="0.85"
app:layout_constraintStart_toEndOf="@+id/call_draggable"
app:layout_constraintTop_toTopOf="@+id/call_draggable" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/call_accept_label"

View File

@ -313,6 +313,22 @@
android:text="@string/disable_proximity_sensor" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_enable_swipe_to_answer_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_enable_swipe_to_answer"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/enable_swipe_to_answer" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Seskupte další hovory se stejným číslem v protokolu hovorů</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Simple Dialer - Spravujte své telefonní hovory snadno</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Gruppér efterfølgende opkald med samme nummer i opkaldsloggen</string>
<string name="open_dialpad_by_default">Åben det numeriske tastatur som standard når appen åbner</string>
<string name="disable_proximity_sensor">Deaktivér nærhedssensor under opkald</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">In der Anrufliste aufeinanderfolgende Anrufe mit derselben Nummer gruppieren</string>
<string name="open_dialpad_by_default">Öffnen Sie die Wähltastatur als Standard, wenn die App geöffnet wird</string>
<string name="disable_proximity_sensor">Näherungssensor bei Anrufen deaktivieren</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Schlichtes Telefon</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Ομαδοποίηση των επόμενων κλήσεων του ίδιου αριθμού στο αρχείο καταγραφής κλήσεων</string>
<string name="open_dialpad_by_default">Ανοίξτε το πληκτρολόγιο από προεπιλογή όταν ανοίγει η εφαρμογή</string>
<string name="disable_proximity_sensor">Απενεργοποίηση του αισθητήρα εγγύτητας κατά τη διάρκεια κλήσεων</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Agrupar llamadas subsecuentes con el mísmo número en el registro de llamadas</string>
<string name="open_dialpad_by_default">Abrir el teclado de marcado de forma predeterminada al abrir la aplicación</string>
<string name="disable_proximity_sensor">Deshabilitar el sensor de proximidad durante las llamadas</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Ryhmitä saman numeron peräkkäiset puhelut puheluhistoriassa</string>
<string name="open_dialpad_by_default">Avaa numeronäppäimistö, kun sovellus avataan</string>
<string name="disable_proximity_sensor">Poista läheisyysanturi käytöstä puheluiden aikana</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Regrouper les appels suivants avec le même numéro dans le journal des appels</string>
<string name="open_dialpad_by_default">Ouvrir le pavé numérique par défaut à l\'ouverture de l\'application</string>
<string name="disable_proximity_sensor">Désactiver le capteur de proximité pendant les appels</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Simple Dialer - Gérez facilement vos appels</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Agrupar, no rexisto, as chamadas para o mesmo contacto</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Ugyanazon szám egymást követő hívásainak csoportosítása a hívásnaplóban</string>
<string name="open_dialpad_by_default">Tárcsázó alapértelmezett kinyitása az alkalmazás megnyitásakor</string>
<string name="disable_proximity_sensor">Közelségérzékelő kikapcsolása a hívások során</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Simple Dialer Telefonhívások kezelése egyszerűen</string>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Kelompokkan panggilan berikutnya dengan nomor yang sama di log panggilan</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Raggruppa chiamate successive con lo stesso numero nel registro delle chiamate</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">後続の通話をコールログの同じ番号でグループ化する</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">കോൾ ലോഗിൽ അതേ നമ്പറുള്ള കോളുകൾ ഗ്രൂപ്പുചെയ്യുക</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -55,7 +55,8 @@
<!-- Settings -->
<string name="group_subsequent_calls">Oproepgeschiedenis: opeenvolgende items van hetzelfde nummer groeperen</string>
<string name="open_dialpad_by_default">Standaard het toetsenblok openen bij starten</string>
<string name="disable_proximity_sensor">Nabijheidssensor uitschakelen tijdens bellen</string>v
<string name="disable_proximity_sensor">Nabijheidssensor uitschakelen tijdens bellen</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Grupuj kolejne połączenia z tym samym numerem w rejestrze połączeń</string>
<string name="open_dialpad_by_default">Otwieraj panel wybierania numeru domyślnie przy uruchomieniu aplikacji</string>
<string name="disable_proximity_sensor">Wyłączaj czujnik zbliżeniowy podczas połączeń</string>
<string name="enable_swipe_to_answer">Włącz gest przesunięcia do odpowiadania na połączenia przychodzące</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Prosty telefon - Łatwe połączenia telefoniczne</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Agrupar, no registo, as chamadas para o mesmo contacto</string>
<string name="open_dialpad_by_default">Mostrar teclado de marcação ao abrir a aplicação</string>
<string name="disable_proximity_sensor">Desativar sensor de proximidade durante as chamadas</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Группировать последующие вызовы с тем же номером в журнале вызовов</string>
<string name="open_dialpad_by_default">По умолчанию открывать номеронабиратель при запуске приложения</string>
<string name="disable_proximity_sensor">Отключать датчик приближения во время вызовов</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Simple Dialer - управление телефонными звонками</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Zoskupiť susedné volania s rovnakým číslom v histórií volaní</string>
<string name="open_dialpad_by_default">Otvoriť číselník po spustení apky</string>
<string name="disable_proximity_sensor">Vypnúť počas hovorov senzor priblíženia</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Gruppera samtal till och från samma nummer i samtalshistoriken</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">Arama kaydında aynı numaraya sahip sonraki aramaları gruplandır</string>
<string name="open_dialpad_by_default">Uygulama açıldığında varsayılan olarak tuş takımını</string>
<string name="disable_proximity_sensor">Aramalar sırasında yakınlık sensörünü devre dışı bırak</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">Basit Çevirici - Aramaları kolayca yönetin</string>
@ -84,4 +85,4 @@
Bazı dizeleri bulamadınız mı? Burada daha fazlası var:
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Group subsequent calls with the same number at the call log</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->

View File

@ -51,6 +51,7 @@
<string name="group_subsequent_calls">在通话记录中将同一号码的后续呼叫合并为一组</string>
<string name="open_dialpad_by_default">应用程序打开时默认打开拨号盘</string>
<string name="disable_proximity_sensor">在通话期间禁用接近传感器</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
<string name="app_title">简易拨号器 - 轻松管理您的手机通话</string>
@ -84,4 +85,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -56,6 +56,7 @@
<string name="group_subsequent_calls">Group subsequent calls with the same number at the call log</string>
<string name="open_dialpad_by_default">Open the dialpad by default when the app opens</string>
<string name="disable_proximity_sensor">Disable proximity sensor during calls</string>
<string name="enable_swipe_to_answer">Enable swipe to answer an incoming call</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->