From: Damyan Ivanov Date: Mon, 11 Jan 2021 21:36:48 +0000 (+0200) Subject: use indefinite snackbar showing interval X-Git-Tag: v0.17.0~219 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=44134db33bab98bc7e7a2eb31c2c18e962b0d098;p=mobile-ledger.git use indefinite snackbar showing interval these are messages that need to be read --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 490471d9..da39640a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -287,7 +287,7 @@ public class MainActivity extends ProfileThemedActivity { if (error == null) return; - Snackbar.make(b.mainPager, error, Snackbar.LENGTH_LONG) + Snackbar.make(b.mainPager, error, Snackbar.LENGTH_INDEFINITE) .show(); mainModel.clearUpdateError(); }); diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java index 21d63940..d9d844a4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java @@ -266,7 +266,7 @@ public class NewTransactionFragment extends Fragment { .show(); } else { - Snackbar.make(list, error, Snackbar.LENGTH_LONG) + Snackbar.make(list, error, Snackbar.LENGTH_INDEFINITE) .show(); } keep = true; diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java index 0dc51aaa..c91d3905 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java @@ -250,7 +250,7 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter Snackbar.make(recyclerView, R.string.ignoring_preferred_account, - Snackbar.LENGTH_LONG) + Snackbar.LENGTH_INDEFINITE) .show()); MLDB.queryInBackground(broaderSql, new String[]{description},