tweak the text on the dialer notification

This commit is contained in:
tibbi 2018-11-22 23:41:30 +01:00
parent 0ec5b4b58b
commit 007cc40ac6
18 changed files with 41 additions and 21 deletions

View File

@ -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)
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>