android
android copied to clipboard
Starred Issues
What type of PR is this? (check all applicable)
- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] Optimization
Description
Implements a starred issue feature. Adds an icon to the app bar in IssueActivity that toggles a starred state. This state is stored in a new database table that is fetched during onResume in MainActivity and "trimmed" when the issues list is received from the API.
Another notable change, I removed the app bar title from IssueActivity as it was already being truncated on my phone and adding another icon just further shortened it. Considering the text that was there (the issue title) is directly below I felt that having the first Xteen whatever characters of it in the app bar seemed silly.
- Closes #234
Were the changes tested?
- [x] Yes, automated tests in
DatabaseHelperTest.java - [x] Yes, manually tested: Toggling issues as starred/unstarred and checking that changes reflect in main issues list