mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
show the initial Upgrade to Pro dialog when appropriate
This commit is contained in:
parent
69cb788a04
commit
a9a9ff8b7e
@ -42,7 +42,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.3.9'
|
||||
implementation 'com.simplemobiletools:commons:5.3.10'
|
||||
|
||||
implementation files('../libs/RootTools.jar')
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import android.view.MenuItem
|
||||
import androidx.appcompat.widget.SearchView
|
||||
import androidx.core.view.MenuItemCompat
|
||||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.dialogs.UpgradeToProDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.*
|
||||
import com.simplemobiletools.commons.models.FAQItem
|
||||
@ -56,6 +57,11 @@ class MainActivity : SimpleActivity() {
|
||||
checkIfRootAvailable()
|
||||
checkInvalidFavorites()
|
||||
}
|
||||
|
||||
if (!config.wasInitialUpgradeToProShown) {
|
||||
UpgradeToProDialog(this)
|
||||
config.wasInitialUpgradeToProShown = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user