tweak the text on the dialer notification
This commit is contained in:
parent
0ec5b4b58b
commit
007cc40ac6
|
@ -80,10 +80,13 @@ class DialerCallService : Service() {
|
|||
}
|
||||
|
||||
private fun getCallStatusString(): String {
|
||||
return when (callStatus) {
|
||||
Call.STATE_NEW -> applicationContext.getString(if (isIncomingCall) R.string.incoming_call else R.string.calling)
|
||||
Call.STATE_ACTIVE -> applicationContext.getString(R.string.ongoing_call)
|
||||
else -> ""
|
||||
}
|
||||
val id = when (callStatus) {
|
||||
Call.STATE_DIALING -> R.string.calling
|
||||
Call.STATE_RINGING -> R.string.incoming_call
|
||||
Call.STATE_ACTIVE -> R.string.ongoing_call
|
||||
else -> if (isIncomingCall) R.string.incoming_call else R.string.calling
|
||||
}
|
||||
|
||||
return applicationContext.getString(id)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Compositore</string>
|
||||
<string name="calling">Chiamata in corso…</string>
|
||||
<string name="incoming_call">Chiamata in arrivo da…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Chiamata in arrivo da…</string>
|
||||
<string name="ongoing_call">Chiamata in corso</string>
|
||||
<string name="disconnected">Disconnesso</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">電話</string>
|
||||
<string name="calling">発信中…</string>
|
||||
<string name="incoming_call">着信中…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">着信中…</string>
|
||||
<string name="ongoing_call">通話中</string>
|
||||
<string name="disconnected">切断されました</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Telefón</string>
|
||||
<string name="calling">Vytáča sa…</string>
|
||||
<string name="incoming_call">Prichádzajúci hovor od…</string>
|
||||
<string name="incoming_call">Prichádzajúci hovor</string>
|
||||
<string name="incoming_call_from">Prichádzajúci hovor od…</string>
|
||||
<string name="ongoing_call">Prebiehajúci hovor</string>
|
||||
<string name="disconnected">Ukončený hovor</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@
|
|||
<!-- Dialer -->
|
||||
<string name="dialer">Dialer</string>
|
||||
<string name="calling">Calling…</string>
|
||||
<string name="incoming_call">Incoming call from…</string>
|
||||
<string name="incoming_call">Incoming call</string>
|
||||
<string name="incoming_call_from">Incoming call from…</string>
|
||||
<string name="ongoing_call">Ongoing call</string>
|
||||
<string name="disconnected">Disconnected</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue