Skip to content

Commit bb496bb

Browse files
committed
fix #593, remove the Dialer Moved dialog
1 parent 749bbe5 commit bb496bb

File tree

37 files changed

+4
-236
lines changed

37 files changed

+4
-236
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ import com.simplemobiletools.contacts.pro.BuildConfig
2626
import com.simplemobiletools.contacts.pro.R
2727
import com.simplemobiletools.contacts.pro.adapters.ViewPagerAdapter
2828
import com.simplemobiletools.contacts.pro.databases.ContactsDatabase
29-
import com.simplemobiletools.contacts.pro.dialogs.*
29+
import com.simplemobiletools.contacts.pro.dialogs.ChangeSortingDialog
30+
import com.simplemobiletools.contacts.pro.dialogs.ExportContactsDialog
31+
import com.simplemobiletools.contacts.pro.dialogs.FilterContactSourcesDialog
32+
import com.simplemobiletools.contacts.pro.dialogs.ImportContactsDialog
3033
import com.simplemobiletools.contacts.pro.extensions.config
3134
import com.simplemobiletools.contacts.pro.extensions.getTempFile
3235
import com.simplemobiletools.contacts.pro.extensions.handleGenericContactClick
@@ -74,7 +77,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
7477
setupTabColors()
7578
checkContactPermissions()
7679
checkWhatsNewDialog()
77-
checkDialerMigrationDialog()
7880
}
7981

8082
private fun checkContactPermissions() {
@@ -611,17 +613,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
611613
}
612614
}
613615

614-
private fun checkDialerMigrationDialog() {
615-
if (config.appRunCount < 3) {
616-
config.wasDialerMigrationShown = true
617-
}
618-
619-
if (!config.wasDialerMigrationShown) {
620-
config.wasDialerMigrationShown = true
621-
DialerMovedDialog(this)
622-
}
623-
}
624-
625616
private fun checkWhatsNewDialog() {
626617
arrayListOf<Release>().apply {
627618
add(Release(10, R.string.release_10))

app/src/main/kotlin/com/simplemobiletools/contacts/pro/dialogs/DialerMovedDialog.kt

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Config.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,4 @@ class Config(context: Context) : BaseConfig(context) {
6464
var showPrivateContacts: Boolean
6565
get() = prefs.getBoolean(SHOW_PRIVATE_CONTACTS, true)
6666
set(showPrivateContacts) = prefs.edit().putBoolean(SHOW_PRIVATE_CONTACTS, showPrivateContacts).apply()
67-
68-
var wasDialerMigrationShown: Boolean
69-
get() = prefs.getBoolean(WAS_DIALER_MIGRATION_SHOWN, false)
70-
set(wasDialerMigrationShown) = prefs.edit().putBoolean(WAS_DIALER_MIGRATION_SHOWN, wasDialerMigrationShown).apply()
7167
}

app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const val SPEED_DIAL = "speed_dial"
2222
const val LAST_EXPORT_PATH = "last_export_path"
2323
const val WAS_LOCAL_ACCOUNT_INITIALIZED = "was_local_account_initialized"
2424
const val SHOW_PRIVATE_CONTACTS = "show_private_contacts"
25-
const val WAS_DIALER_MIGRATION_SHOWN = "was_dialer_migration_shown"
2625

2726
const val SMT_PRIVATE = "smt_private" // used at the contact source of local contacts hidden from other apps
2827
const val GROUP = "group"

app/src/main/res/layout/dialog_dialer_moved.xml

Lines changed: 0 additions & 28 deletions
This file was deleted.

app/src/main/res/values-ar/strings.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<string name="call_person">Call %s</string>
1616
<string name="create_new_contact">إنشاء جهة إتصال</string>
1717
<string name="add_to_existing_contact">إضافة إلى جهة موجودة</string>
18-
<string name="dialer_moved">
19-
<![CDATA[
20-
The part of the app responsible for Call handling had to be moved into a separate new app Simple Dialer, please download it on <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.dialer">this link.</a> Thanks!
21-
]]>
22-
</string>
2318

2419
<!-- Placeholders -->
2520
<string name="no_contacts_with_emails">لا توجد جهات اتصال بهذا البريد الالكتروني</string>

app/src/main/res/values-az/strings.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<string name="call_person">%s şəxsinə zng et</string>
1616
<string name="create_new_contact">Create new contact</string>
1717
<string name="add_to_existing_contact">Add to an existing contact</string>
18-
<string name="dialer_moved">
19-
<![CDATA[
20-
The part of the app responsible for Call handling had to be moved into a separate new app Simple Dialer, please download it on <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.dialer">this link.</a> Thanks!
21-
]]>
22-
</string>
2318

2419
<!-- Placeholders -->
2520
<string name="no_contacts_with_emails">No contacts with emails have been found</string>

app/src/main/res/values-cs/strings.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<string name="call_person">Zavolat %s</string>
1616
<string name="create_new_contact">Vytvořit nový kontakt</string>
1717
<string name="add_to_existing_contact">Přidat k existujícímu kontaktu</string>
18-
<string name="dialer_moved">
19-
<![CDATA[
20-
The part of the app responsible for Call handling had to be moved into a separate new app Simple Dialer, please download it on <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.dialer">this link.</a> Thanks!
21-
]]>
22-
</string>
2318

2419
<!-- Placeholders -->
2520
<string name="no_contacts_with_emails">Nenalezeny žádné kontakty s e-maily</string>

app/src/main/res/values-cy/strings.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<string name="call_person">Galw %s</string>
1616
<string name="create_new_contact">Creu cyswllt newydd</string>
1717
<string name="add_to_existing_contact">Ychwanegu at gyswllt sy\'n bodoli</string>
18-
<string name="dialer_moved">
19-
<![CDATA[
20-
The part of the app responsible for Call handling had to be moved into a separate new app Simple Dialer, please download it on <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.dialer">this link.</a> Thanks!
21-
]]>
22-
</string>
2318

2419
<!-- Placeholders -->
2520
<string name="no_contacts_with_emails">Ni chanfuwyd unrhyw gysylltiadau gydag ebost</string>

app/src/main/res/values-da/strings.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<string name="call_person">Ring til %s</string>
1616
<string name="create_new_contact">Opret ny kontakt</string>
1717
<string name="add_to_existing_contact">Tilføj til en eksisterende kontakt</string>
18-
<string name="dialer_moved">
19-
<![CDATA[
20-
The part of the app responsible for Call handling had to be moved into a separate new app Simple Dialer, please download it on <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.dialer">this link.</a> Thanks!
21-
]]>
22-
</string>
2318

2419
<!-- Placeholders -->
2520
<string name="no_contacts_with_emails">Ingen kontakter med emails fundet</string>

0 commit comments

Comments
 (0)