mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-02-06 14:46:43 +01:00
show a prompt mentioning our new apps
This commit is contained in:
parent
6cdf9ac905
commit
668df3b8fb
2 changed files with 8 additions and 8 deletions
|
@ -78,7 +78,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.28.3'
|
implementation 'com.simplemobiletools:commons:5.28.4'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
|
|
|
@ -23,6 +23,7 @@ import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
||||||
import com.simplemobiletools.commons.dialogs.CreateNewFolderDialog
|
import com.simplemobiletools.commons.dialogs.CreateNewFolderDialog
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
|
import com.simplemobiletools.commons.dialogs.NewAppsIconsDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
|
@ -51,7 +52,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
private val PICK_MEDIA = 2
|
private val PICK_MEDIA = 2
|
||||||
private val PICK_WALLPAPER = 3
|
private val PICK_WALLPAPER = 3
|
||||||
private val LAST_MEDIA_CHECK_PERIOD = 3000L
|
private val LAST_MEDIA_CHECK_PERIOD = 3000L
|
||||||
private val NEW_APP_PACKAGE = "com.simplemobiletools.clock"
|
|
||||||
|
|
||||||
private var mIsPickImageIntent = false
|
private var mIsPickImageIntent = false
|
||||||
private var mIsPickVideoIntent = false
|
private var mIsPickVideoIntent = false
|
||||||
|
@ -118,12 +118,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
mIsPasswordProtectionPending = config.isAppPasswordProtectionOn
|
mIsPasswordProtectionPending = config.isAppPasswordProtectionOn
|
||||||
setupLatestMediaId()
|
setupLatestMediaId()
|
||||||
|
|
||||||
// notify some users about the Clock app
|
|
||||||
/*if (System.currentTimeMillis() < 1523750400000 && !config.wasNewAppShown && config.appRunCount > 100 && config.appRunCount % 50 != 0 && !isPackageInstalled(NEW_APP_PACKAGE)) {
|
|
||||||
config.wasNewAppShown = true
|
|
||||||
NewAppDialog(this, NEW_APP_PACKAGE, "Simple Clock")
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (!config.wereFavoritesPinned) {
|
if (!config.wereFavoritesPinned) {
|
||||||
config.addPinnedFolders(hashSetOf(FAVORITES))
|
config.addPinnedFolders(hashSetOf(FAVORITES))
|
||||||
config.wereFavoritesPinned = true
|
config.wereFavoritesPinned = true
|
||||||
|
@ -161,6 +155,12 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// notify some users about the Dialer, SMS Messenger and Voice Recorder apps
|
||||||
|
if (!config.wasMessengerRecorderShown && config.appRunCount > 35) {
|
||||||
|
NewAppsIconsDialog(this)
|
||||||
|
config.wasMessengerRecorderShown = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStart() {
|
override fun onStart() {
|
||||||
|
|
Loading…
Reference in a new issue