-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add tag filtering options #12
Conversation
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.
Code Style review
new MaterialDialog.Builder(getActivity()) | ||
.title("Select Tags") | ||
.items(Utils.getTagsArray()) | ||
.itemsCallbackMultiChoice(tagsPreferenceIndex |
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.
weird formatting
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.
Fixed in 58883bc
@@ -10,12 +10,14 @@ | |||
import android.preference.PreferenceManager; | |||
import android.support.customtabs.CustomTabsIntent; | |||
import android.text.TextUtils; | |||
import android.util.Log; |
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.
Development Import
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.
Ah I missed that one, thanks! :)
Fixed in 7cb619a
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Select Tags" |
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.
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Select Language" |
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.
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.
When developing I actively decided against that. I saw there was a PR open that was adressing that, but I decided to stick with the current way Strings are embedded into the app (namely hardcoded).
I did this for 2 reasons:
a) In case he does not want to use string ressources (unlikely)
b) So when he merges this branch with the master branch it will be consistent.
I would rather use string ressources aswell. If #9 gets integrated, I will update these values with string ressource values.
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.
Seems like a fair plan, you can always rebase against master later!
I built your branch but on first opening the app, it crashed:
|
Found the issue and fixed it. Problem was, I was returning null when no tags preference was set. Returning an emtpy String array is better in this case, since no saved value means no preferences. Thanks for the report! :) Fixed in 7509f85 |
With your latest fixes this is working great. Thanks for the contribution! One simple improvement could be moving down the whole filter selectors in the blue circle to account for the bigger spaces needed. So simple move down the layout to center it in the blue circle! |
Would you mind posting a screenshot of how it looks on your phone? Because on mine, the blue circle encompasses the whole filter selectors. :) |
Allows issue filtering based on tags.
Fixes issue #1