mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 12:30:07 +01:00
lets notify the users about the SMS Messenger and Voice Recorder apps
This commit is contained in:
parent
a942121994
commit
dde2076e08
@ -57,7 +57,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.26.10'
|
||||
implementation 'com.simplemobiletools:commons:5.26.11'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
|
||||
|
||||
kapt 'androidx.room:room-compiler:2.2.5'
|
||||
|
@ -16,6 +16,7 @@ import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
|
||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||
import com.simplemobiletools.commons.dialogs.NewAppDialog
|
||||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.*
|
||||
@ -92,6 +93,16 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
checkAppOnSDCard()
|
||||
setupSearchButtons()
|
||||
|
||||
// notify some users about the SMS Messenger and Voice Recorder apps
|
||||
if (!config.wasMessengerRecorderShown) {
|
||||
val messengerPackage = "com.simplemobiletools.smsmessenger"
|
||||
val recorderPackage = "com.simplemobiletools.voicerecorder"
|
||||
if (config.appRunCount > 35 && !isPackageInstalled(messengerPackage) && !isPackageInstalled(recorderPackage)) {
|
||||
NewAppDialog(this, messengerPackage, "Simple SMS Messenger", recorderPackage, "Simple Voice Recorder")
|
||||
}
|
||||
config.wasMessengerRecorderShown = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user