mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
renaming some contacts to dialer
This commit is contained in:
@ -113,8 +113,8 @@
|
|||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.simplemobiletools.contacts.action.ACCEPT_CALL" />
|
<action android:name="com.simplemobiletools.dialer.action.ACCEPT_CALL" />
|
||||||
<action android:name="com.simplemobiletools.contacts.action.DECLINE_CALL" />
|
<action android:name="com.simplemobiletools.dialer.action.DECLINE_CALL" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
|
|
||||||
|
@ -304,14 +304,14 @@ class CallActivity : SimpleActivity() {
|
|||||||
|
|
||||||
private fun initProximitySensor() {
|
private fun initProximitySensor() {
|
||||||
val powerManager = getSystemService(Context.POWER_SERVICE) as PowerManager
|
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)
|
proximityWakeLock!!.acquire(10 * MINUTE_SECONDS * 1000L)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
private fun setupNotification() {
|
private fun setupNotification() {
|
||||||
val callState = CallManager.getState()
|
val callState = CallManager.getState()
|
||||||
val channelId = "simple_contacts_call"
|
val channelId = "simple_dialer_call"
|
||||||
if (isOreoPlus()) {
|
if (isOreoPlus()) {
|
||||||
val importance = NotificationManager.IMPORTANCE_DEFAULT
|
val importance = NotificationManager.IMPORTANCE_DEFAULT
|
||||||
val name = "call_notification_channel"
|
val name = "call_notification_channel"
|
||||||
|
@ -23,7 +23,7 @@ class DialerActivity : SimpleActivity() {
|
|||||||
if (intent.action == Intent.ACTION_CALL && intent.data != null) {
|
if (intent.action == Intent.ACTION_CALL && intent.data != null) {
|
||||||
callNumber = intent.data
|
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()) {
|
if (!isDefaultDialer()) {
|
||||||
launchSetDefaultDialerIntent()
|
launchSetDefaultDialerIntent()
|
||||||
} else {
|
} else {
|
||||||
|
@ -13,6 +13,6 @@ val tabsList = arrayListOf(CONTACTS_TAB_MASK, RECENTS_TAB_MASK)
|
|||||||
|
|
||||||
const val KEY_PHONE = "phone"
|
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 ACCEPT_CALL = PATH + "accept_call"
|
||||||
const val DECLINE_CALL = PATH + "decline_call"
|
const val DECLINE_CALL = PATH + "decline_call"
|
||||||
|
Reference in New Issue
Block a user