moving the Manage Blocked Numbers in Commons

This commit is contained in:
tibbi
2020-04-08 11:55:15 +02:00
parent 57b61243a6
commit 172e5f0d24
47 changed files with 13 additions and 504 deletions

View File

@ -64,17 +64,6 @@ open class SimpleActivity : BaseSimpleActivity() {
}
}
@TargetApi(Build.VERSION_CODES.M)
protected fun launchSetDefaultDialerIntent() {
Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER).putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME, packageName).apply {
if (resolveActivity(packageManager) != null) {
startActivityForResult(this, REQUEST_CODE_SET_DEFAULT_DIALER)
} else {
toast(R.string.no_app_found)
}
}
}
protected fun getTabIcon(position: Int): Drawable {
val drawableId = when (position) {
LOCATION_CONTACTS_TAB -> R.drawable.ic_person_vector