refactor: move askToRate() to GeeksvilleApplication

This commit is contained in:
andrekir
2023-01-26 11:32:46 -03:00
committed by Andre K
parent 023d4d767d
commit 9ea6dff385
4 changed files with 34 additions and 24 deletions

View File

@@ -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()