Simplified the code for splitting up the data for the food menu

This commit is contained in:
Deniz Düzgören
2019-08-16 07:57:13 +02:00
parent e0f39c5584
commit 18285f83a6
3 changed files with 28 additions and 41 deletions
@@ -389,8 +389,8 @@ class SettingsFragment : Fragment(R.layout.content_settings), View.OnClickListen
}
}
"_NOTIFICATION" -> {
edit.putString("time", "").apply()
Toast.makeText(mContext, "Notification time cleared", Toast.LENGTH_LONG).show()
edit.putString("time", "").putString("timeFood", "").apply()
Toast.makeText(mContext, "Notification times cleared", Toast.LENGTH_LONG).show()
} // TODO add option to clear database
"_FIRSTTIME" -> {
edit.putBoolean("firstTime", true).apply()