mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-19 16:52:45 +02:00
[Gradle] Add non-Play flavor without self-updater.
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) Kuba Szczodrzyński 2022-2-21.
|
||||
*/
|
||||
|
||||
package pl.szczodrzynski.edziennik.sync
|
||||
|
||||
import android.app.IntentService
|
||||
import android.content.Intent
|
||||
import android.widget.Toast
|
||||
import pl.szczodrzynski.edziennik.utils.Utils
|
||||
|
||||
class UpdateDownloaderService : IntentService(UpdateDownloaderService::class.java.simpleName) {
|
||||
|
||||
override fun onHandleIntent(intent: Intent?) {
|
||||
try {
|
||||
Utils.openGooglePlay(this, application.packageName)
|
||||
}
|
||||
catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Toast.makeText(this, "Nie znaleziono Google Play. Pobierz aktualizację ręcznie.", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user