Conversation
Users can bookmark individual issues This requires a database schema change!
dektar
left a comment
There was a problem hiding this comment.
This is great! I haven't had time yet to try it on a device, and I'll do that before I approve to check edge cases manually (I'm more likely to catch something that way than reading the code). I also haven't fully read the IssuesAdapterTest.
- I think we could add to MainActivityHappyPathTest to try adding/removing a bookmark, or add a TODO for that.
- You'll need Spanish strings before the changes pass the checks. I've been using Google Translate since we don't have a large Spanish-language presence at this point...
- Sorry about the merge conflict, please make sure not to show a bookmark icon on the demo issue (we could do like
if isPlaceholder { bookmarkIcon.setVisiblity(View.GONE) }or something in issuesAdapter. - Some minor comments below.
5calls/app/src/main/java/org/a5calls/android/a5calls/adapter/IssuesAdapter.java
Outdated
Show resolved
Hide resolved
5calls/app/src/main/java/org/a5calls/android/a5calls/controller/MainActivity.java
Outdated
Show resolved
Hide resolved
5calls/app/src/main/java/org/a5calls/android/a5calls/controller/MainActivity.java
Outdated
Show resolved
Hide resolved
5calls/app/src/main/java/org/a5calls/android/a5calls/controller/MainActivity.java
Outdated
Show resolved
Hide resolved
5calls/app/src/test/java/org/a5calls/android/a5calls/model/DatabaseHelperTest.java
Show resolved
Hide resolved
Adding in spanish translations
* origin/master: Add a demonstration issue shown until the user has made 2 calls (#295)
on details view as well
Fixed accessibility issues (talkback) Moved top issues to top in Filter list, so index 0 as the default selection just works as before fixed the filter re-opening on filter bar tap issue fixed scroll issue of filter list partially over filter bar bookmark icon hidden when no location set reduced bottom whitespace since bookmark icon provides some additional bottom padding bookmark icon size is identical between MainActivity and IssueActivity bookmark icon on IssueActivity locked to Top intead of centered vertically on Issue title
|
Should have fixed all comments. Commit pushed! @dektar |
dektar
left a comment
There was a problem hiding this comment.
I will try it on the phone tomorrow, sorry I've run out of time today! Just a few things.
| // so it still reserves space for consistent row height. | ||
| if (issue.isPlaceholder) { | ||
| vh.bookmarkIcon.setVisibility(View.GONE); | ||
| vh.bookmarkIcon.setVisibility(View.INVISIBLE); |
There was a problem hiding this comment.
do we also need to get rid of the content description or is this sufficient to hide for a11y? (i can test this later).
| if (issue.isPlaceholder) { | ||
| vh.bookmarkIcon.setVisibility(View.GONE); | ||
| vh.bookmarkIcon.setVisibility(View.INVISIBLE); | ||
| vh.bookmarkIcon.setClickable(false); |
There was a problem hiding this comment.
do we ever set it to clickable(true)? if this view gets recycled it'll still have an unclickable icon?
| return maxWidthPx; | ||
| } | ||
|
|
||
|
|
| android:layout_width="54dp" | ||
| android:layout_height="54dp" | ||
| android:padding="12dp" | ||
| android:layout_width="48dp" |
There was a problem hiding this comment.
please prefer using constants for dimens rather than hard-coding.






What type of PR is this? (check all applicable)
Description
Added a Bookmarking feature to the app.
Issues can be bookmarked/unbookmarked from the List view or the Details view.
There is a db schema change.
The way a user's Bookmarked Issues are accessed is via the Top Issues filter.
There is analytics tracking via Plausible.
Related Issues
Were the changes tested?
have not been included