-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better input validation for bookmarks dialog #4343
base: release/4.0
Are you sure you want to change the base?
Conversation
@VishnuSanal fix CI |
codacy cries about using a label in return. seems unreasonable. |
|
||
val result = isValidBookmark(editText1.text.toString(), editText2.text.toString()) | ||
if (!result.first) { | ||
Toast.makeText( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a snackbar per Android guidelines https://developer.android.com/guide/topics/ui/notifiers/toasts
@@ -174,7 +174,7 @@ int contains(String[] a, ArrayList<String[]> b) { | |||
if (b == null) return -1; | |||
int i = 0; | |||
for (String[] x : b) { | |||
if (x[0].equals(a[0]) && x[1].equals(a[1])) return i; | |||
if (x[0].equals(a[0]) || x[1].equals(a[1])) return i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this (DataUtils::constains
) function is very opaque, what is it actually doing? Whats the fix doing?
I think we either need to ignore the issue project wise or ignore on the line to actually be able to merge. |
fixes #4337, #4336, #4335 & #4334