diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt index 31f4ed0f..d3ff8e13 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt @@ -3,6 +3,7 @@ package com.simplemobiletools.contacts.activities import android.app.SearchManager import android.content.Context import android.content.Intent +import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.graphics.drawable.Drawable import android.net.Uri @@ -163,6 +164,10 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { } } isFirstResume = false + + val blackIcon = resources.getColoredDrawableWithColor(R.drawable.ic_phone_big, if (isBlackAndWhiteTheme()) Color.BLACK else Color.WHITE) + main_dialer_button.setImageDrawable(blackIcon) + main_dialer_button.background.applyColorFilter(getAdjustedPrimaryColor()) } override fun onPause() { @@ -369,6 +374,10 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { } main_tabs_holder.beVisibleIf(skippedTabs < 3) + + main_dialer_button.setOnClickListener { + + } } private fun getTabIcon(position: Int): Drawable { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 1c26ff25..7651b551 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -22,4 +22,15 @@ android:layout_height="match_parent" android:layout_below="@+id/main_tabs_holder"/> + + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 4061e3b5..ae6e5ebe 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -4,4 +4,5 @@ 45dp 40dp 52dp + 60dp