renaming some contacts to dialer

This commit is contained in:
tibbi
2020-05-10 10:36:51 +02:00
parent 4f649a1788
commit 3296652da3
4 changed files with 6 additions and 6 deletions

View File

@ -113,8 +113,8 @@
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.simplemobiletools.contacts.action.ACCEPT_CALL" />
<action android:name="com.simplemobiletools.contacts.action.DECLINE_CALL" />
<action android:name="com.simplemobiletools.dialer.action.ACCEPT_CALL" />
<action android:name="com.simplemobiletools.dialer.action.DECLINE_CALL" />
</intent-filter>
</receiver>

View File

@ -304,14 +304,14 @@ class CallActivity : SimpleActivity() {
private fun initProximitySensor() {
val powerManager = getSystemService(Context.POWER_SERVICE) as PowerManager
proximityWakeLock = powerManager.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "com.simplemobiletools.contacts.pro:wake_lock")
proximityWakeLock = powerManager.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "com.simplemobiletools.dialer.pro:wake_lock")
proximityWakeLock!!.acquire(10 * MINUTE_SECONDS * 1000L)
}
@SuppressLint("NewApi")
private fun setupNotification() {
val callState = CallManager.getState()
val channelId = "simple_contacts_call"
val channelId = "simple_dialer_call"
if (isOreoPlus()) {
val importance = NotificationManager.IMPORTANCE_DEFAULT
val name = "call_notification_channel"

View File

@ -23,7 +23,7 @@ class DialerActivity : SimpleActivity() {
if (intent.action == Intent.ACTION_CALL && intent.data != null) {
callNumber = intent.data
// make sure Simple Contacts is the default Phone app before initiating an outgoing call
// make sure Simple Dialer is the default Phone app before initiating an outgoing call
if (!isDefaultDialer()) {
launchSetDefaultDialerIntent()
} else {

View File

@ -13,6 +13,6 @@ val tabsList = arrayListOf(CONTACTS_TAB_MASK, RECENTS_TAB_MASK)
const val KEY_PHONE = "phone"
private const val PATH = "com.simplemobiletools.contacts.action."
private const val PATH = "com.simplemobiletools.dialer.action."
const val ACCEPT_CALL = PATH + "accept_call"
const val DECLINE_CALL = PATH + "decline_call"