]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use indefinite snackbar showing interval
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Jan 2021 21:36:48 +0000 (23:36 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Jan 2021 21:36:48 +0000 (23:36 +0200)
these are messages that need to be read

app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java

index 490471d9cbdb84e9725a7697680ee8f480198b05..da39640ad45ab12bd31c637f4dbbf7887bc98748 100644 (file)
@@ -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();
                  });
index 21d6394080991ad598f81f6e7adc279235f273aa..d9d844a4e078babe960808b5cee42bc1552a9360 100644 (file)
@@ -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;
index 0dc51aaa3b5d6bd312c47132156a0db73ec38e6a..c91d39059398af5903907b7a4b38b9516d492f9d 100644 (file)
@@ -250,7 +250,7 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter<NewTransactionItem
 
                 activity.runOnUiThread(
                         () -> Snackbar.make(recyclerView, R.string.ignoring_preferred_account,
-                                Snackbar.LENGTH_LONG)
+                                Snackbar.LENGTH_INDEFINITE)
                                       .show());
 
                 MLDB.queryInBackground(broaderSql, new String[]{description},