sad fucked up

This commit is contained in:
Finnley Somdahl 2024-01-13 12:06:45 -06:00
parent cc5b512441
commit 14d08b9491
2 changed files with 12 additions and 10 deletions

View file

@ -157,15 +157,7 @@ class MainActivity : AppCompatActivity() {
if (!isOnline(this)) {
snackString(this@MainActivity.getString(R.string.no_internet_connection))
startActivity(Intent(this, NoInternet::class.java))
getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
.edit()
.putBoolean("offlineMode", true)
.apply()
} else {
getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
.edit()
.putBoolean("offlineMode", false)
.apply()
val model: AnilistHomeViewModel by viewModels()
model.genres.observe(this) { it ->
if (it != null) {