show a dialog at upgrading from the free version

This commit is contained in:
tibbi 2023-02-07 14:04:38 +01:00
parent 312b807577
commit a31460d122
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import android.widget.ImageView
import android.widget.TextView
import androidx.viewpager.widget.ViewPager
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.*
@ -97,6 +98,11 @@ class MainActivity : SimpleActivity() {
}
}
}
if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.filemanager")) {
ConfirmationDialog(this, "", R.string.upgraded_to_pro, R.string.ok, 0, false) {}
config.wasUpgradedFromFreeShown = true
}
}
override fun onResume() {