Text Basic 2.0.1: added a force save button

This commit is contained in:
denizk0461
2023-05-19 11:15:04 +02:00
parent 447ca4ecb2
commit c552c584b4
8 changed files with 58 additions and 18 deletions
@@ -43,6 +43,14 @@ class QuoteFragment : BaseFragment(R.layout.fragment_quote), QuoteAdapter.OnDele
}
}
binding.buttonSave.setOnClickListener {
save()
context.theme.showSnackBar(
binding.coordinatorLayout,
getString(R.string.quote_fragment_force_save),
)
}
binding.fabAddQuote.setOnClickListener {
quoteAdapter.addNewQuote()
}