kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
make autobug in appRate non fatal
rodzic
73a5789bd0
commit
90d2a9cde4
|
@ -332,6 +332,8 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
|
||||
/// Ask user to rate in play store
|
||||
private fun askToRate() {
|
||||
exceptionReporter { // Got one IllegalArgumentException from inside this lib, but we don't want to crash our app because of bugs in this optional feature
|
||||
|
||||
AppRate.with(this)
|
||||
.setInstallDays(10.toByte()) // default is 10, 0 means install day, 10 means app is launched 10 or more days later than installation
|
||||
.setLaunchTimes(10.toByte()) // default is 10, 3 means app is launched 3 or more times
|
||||
|
@ -353,6 +355,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
AppRate.showRateDialogIfMeetsConditions(this); // Shows the Rate Dialog when conditions are met
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private val isInTestLab: Boolean by lazy {
|
||||
(application as GeeksvilleApplication).isInTestLab
|
||||
|
|
Ładowanie…
Reference in New Issue