idk some fixes or smth
This commit is contained in:
parent
9c67a7e357
commit
de91f1f3fa
9 changed files with 31 additions and 15 deletions
|
@ -213,13 +213,13 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
}
|
||||
}
|
||||
val offline = getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
val offlineMode = getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
.getBoolean("offlineMode", false)
|
||||
if (!isOnline(this)) {
|
||||
snackString(this@MainActivity.getString(R.string.no_internet_connection))
|
||||
startActivity(Intent(this, NoInternet::class.java))
|
||||
} else {
|
||||
if (offline) {
|
||||
if (offlineMode) {
|
||||
snackString(this@MainActivity.getString(R.string.no_internet_connection))
|
||||
startActivity(Intent(this, NoInternet::class.java))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue