mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-28 10:42:31 -04:00
refactor: move askToRate() to GeeksvilleApplication
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user