mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: move askToRate() to GeeksvilleApplication
This commit is contained in:
parent
023d4d767d
commit
9ea6dff385
4 changed files with 34 additions and 24 deletions
|
|
@ -6,6 +6,7 @@ import android.content.Context
|
|||
import android.content.SharedPreferences
|
||||
import android.os.Bundle
|
||||
import android.provider.Settings
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.content.edit
|
||||
import com.geeksville.mesh.analytics.AnalyticsProvider
|
||||
|
||||
|
|
@ -71,6 +72,10 @@ open class GeeksvilleApplication : Application(), Logging {
|
|||
analytics.setEnabled(value && !isInTestLab) // Never do analytics in the test lab
|
||||
}
|
||||
|
||||
fun askToRate(activity: AppCompatActivity) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue