Fixed a bug that would clear the database upon background refresh

This commit is contained in:
Deniz Düzgören
2019-08-07 07:25:06 +02:00
parent 52db4b20bb
commit 78e836b737
5 changed files with 27 additions and 31 deletions
@@ -48,10 +48,6 @@ class Main : AppCompatActivity(R.layout.app_bar_main) {
edit.putInt("launchDev", prefs.getInt("launchDev", 0) + 1)
edit.apply()
if (prefs.getBoolean("notif", true)) {
notificationJob()
}
val appbarlayout = findViewById<AppBarLayout>(R.id.appbarlayout)
val toolbarTxt = findViewById<TextView>(R.id.toolbarTxt)
val bottomNav = findViewById<BottomNavigationView>(R.id.bottom_nav)
@@ -209,6 +205,10 @@ class Main : AppCompatActivity(R.layout.app_bar_main) {
}
}
}
if (prefs.getBoolean("notif", true)) {
notificationJob()
}
}
}