Skip to content

Commit dde2076

Browse files
committed
lets notify the users about the SMS Messenger and Voice Recorder apps
1 parent a942121 commit dde2076

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ android {
5757
}
5858

5959
dependencies {
60-
implementation 'com.simplemobiletools:commons:5.26.10'
60+
implementation 'com.simplemobiletools:commons:5.26.11'
6161
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
6262

6363
kapt 'androidx.room:room-compiler:2.2.5'

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import android.widget.ImageView
1616
import android.widget.TextView
1717
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
1818
import com.simplemobiletools.commons.dialogs.FilePickerDialog
19+
import com.simplemobiletools.commons.dialogs.NewAppDialog
1920
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
2021
import com.simplemobiletools.commons.extensions.*
2122
import com.simplemobiletools.commons.helpers.*
@@ -92,6 +93,16 @@ class MainActivity : SimpleActivity() {
9293

9394
checkAppOnSDCard()
9495
setupSearchButtons()
96+
97+
// notify some users about the SMS Messenger and Voice Recorder apps
98+
if (!config.wasMessengerRecorderShown) {
99+
val messengerPackage = "com.simplemobiletools.smsmessenger"
100+
val recorderPackage = "com.simplemobiletools.voicerecorder"
101+
if (config.appRunCount > 35 && !isPackageInstalled(messengerPackage) && !isPackageInstalled(recorderPackage)) {
102+
NewAppDialog(this, messengerPackage, "Simple SMS Messenger", recorderPackage, "Simple Voice Recorder")
103+
}
104+
config.wasMessengerRecorderShown = true
105+
}
95106
}
96107

97108
override fun onResume() {

0 commit comments

Comments
 (0)