Commit graph

5759 commits

Author SHA1 Message Date
Carl Vuorinen
aa35cd880d Handle clicking notifications
Pass notificationId to main activity via result intent so that we can navigate (can't navigate straight from notifications activity)
2019-05-22 19:42:24 +03:00
Carl Vuorinen
615dbe03c0 Add support for group task notifications 2019-05-22 19:42:24 +03:00
Carl Vuorinen
96dbfd01c9 Add a little padding to dismiss button so it's easier to hit 2019-05-22 19:42:24 +03:00
Carl Vuorinen
21d29b51e5 Refactor NotificationsManager 2019-05-22 19:42:24 +03:00
Carl Vuorinen
f1939123be Convert NotificationsManager to Kotlin 2019-05-22 19:42:24 +03:00
Carl Vuorinen
b668cccd7f Fix PopupNotificationsManagerTest 2019-05-22 19:42:24 +03:00
Carl Vuorinen
c5b5aac774 Rename PopupNotificationsManager to NotificationsManager 2019-05-22 19:42:24 +03:00
Carl Vuorinen
a78897cda7 Revert saving notifications to Realm through User, use PopupNotificationsManager instead
Combine Notification & GlobalNotification models since they model the same thing
2019-05-22 19:42:24 +03:00
Carl Vuorinen
a4583c479a Fix line spacing in no notifications view 2019-05-22 19:42:24 +03:00
Carl Vuorinen
196f208533 Implement dismiss notifications & mark notifications as seen 2019-05-22 19:42:24 +03:00
Carl Vuorinen
140f3eefea Change badge color to gray if all notifications seen 2019-05-22 19:42:16 +03:00
Carl Vuorinen
edc54be6a4 Change badge color from red to purple + improved badge layout
Previously with the padding in the badge shape, it didn't handle large
numbers well (partly cut off) and also the shape wasn't round with small
numbers. Using minWidth & center gravity without padding fixes both issues.
2019-05-22 18:37:21 +03:00
Carl Vuorinen
81516734f5 Add support for mystery items notifications 2019-05-22 18:37:21 +03:00
Carl Vuorinen
2cf3e29f4d Use different notification for party chat message
Using getUserData() did not work (value comes too late) so added local
var for party that's populated from same observable as notifications
2019-05-22 18:36:58 +03:00
Carl Vuorinen
0f86f44b33 Create notification item view and implement few notification types 2019-05-22 18:36:58 +03:00
Carl Vuorinen
3361a8e45f Add support for deserializing NEW_STUFF and UNALLOCATED_STATS_POINTS notifications 2019-05-22 18:34:01 +03:00
Carl Vuorinen
090ab372d0 Refactor NotificationsActivity, add some method stubs to view model 2019-05-22 18:34:01 +03:00
Carl Vuorinen
3dd5703be6 Implement NotificationsViewModel to handle logic related to listing notifications 2019-05-22 18:34:01 +03:00
Carl Vuorinen
ef4628f470 Create custom deserializer for notifications + enum for notification types
Deserialize chat data to custom property as Realm doesn't support polymorphism, so need different property for each different data "shape"
2019-05-22 18:33:09 +03:00
Carl Vuorinen
60abfe12ac Notifications view header with title, badge with count + dismiss all button 2019-05-22 18:32:09 +03:00
Carl Vuorinen
4c2a48ae69 Implement "no notifications" view, display when notifications list empty 2019-05-22 18:31:45 +03:00
Carl Vuorinen
6c09f32e63 Load notifications on activity create + add swipe refresh 2019-05-22 18:30:28 +03:00
Carl Vuorinen
15a352982b Set notifications count to badge in drawer 2019-05-22 18:30:28 +03:00
Carl Vuorinen
e232a9b016 Deserialize notifications from User model 2019-05-22 18:30:28 +03:00
Carl Vuorinen
48c5fc59e3 Add notifications icon to navigation drawer + notifications activity 2019-05-22 18:30:28 +03:00
Phillip Thelen
39587802df fix snackbar text color 2019-05-20 16:38:58 +02:00
Phillip Thelen
94636f3815 fix changing habit streak 2019-05-20 16:38:30 +02:00
Phillip Thelen
838d871364 fix firebase messaging 2019-05-20 16:38:21 +02:00
Phillip Thelen
919b0c1e47 update dependencies 2019-05-20 15:40:45 +02:00
Phillip Thelen
bde04d1424 Partially replace standard AlertDialog with HabiticaAlertDialogs 2019-05-20 14:25:48 +02:00
Phillip Thelen
166e050daa Fix remote config 2019-05-20 14:25:10 +02:00
Phillip Thelen
35a55b838c Fix issue with whitespaces in emails 2019-05-20 13:20:03 +02:00
Phillip Thelen
768f881b00 log when users open no party guild 2019-05-20 13:19:54 +02:00
Phillip Thelen
7a1ef8a7cc Begin implementing new modals 2019-05-17 19:30:05 +02:00
Phillip Thelen
1d2f3ab1bb Theming test 2019-05-17 13:57:29 +02:00
Phillip Thelen
cddb60d717 Fix todo form display issue 2019-05-17 11:52:37 +02:00
Phillip Thelen
9941c61532 Fix reminders for todos 2019-05-17 11:52:37 +02:00
Remigiusz Samborski
3135c9f694 Fixing bug 1139: Rewards: Wrong message in modal when you try to purchase without enough Gold (#1151)
Translation for English, Polish, German and Spanish added too.
2019-05-15 15:14:17 +02:00
Arun Rajagopalan
2bd02914ea Add bounds to pet/mount share drawables (#1150)
* Set bounds on pet/mount share drawable

* Variablizing image side lengths
2019-05-15 15:13:12 +02:00
Remigiusz Samborski
30539ba6a0 Fixing bug 1142: Habits: Yellow habits should show with 'Weak' filter, not 'Strong' (#1149)
Values taken from file: Task.kt (line: 111)
2019-05-15 15:07:35 +02:00
bacowan
29d8f761aa Including the option to share a challenge (#1147)
* Adding a Share button in the challenge overflow menu which copies the
selected challenge's URL to the clipboard.

* first attempt

* mostly working, just need to add copy to clipboard

* not using the ShareActionProvider

* Removing unused dependencies and includes
2019-05-15 15:05:05 +02:00
Phillip Thelen
bd0632b624
Merge pull request #1134 from emily-keller/develop
Message posted to Tavern containing banned words does not disappear
2019-05-15 15:01:17 +02:00
Angelo Viado
fa7a4e1aac Change key for bundle when passing group id (#1131)
GuildFragmentArgs uses groupID as key

Fixes #1072
2019-05-15 15:00:21 +02:00
bacowan
2f2fbce0ba Long usernames no longer cover up likes in chat (#1130)
* Switching the LinearLayout containing the username and likes with a
table whose columns can stretch such that the username will word wrap,
but the moderator or likes text will not word wrap or spill out.

* - Fixing line endings (had it set to CRLF)
- Removing a grivity=right since the table is now taking care of it

* nevermind, that was just autoformatting :/

* Switching from wordwrap to elipses

* Moving back to word wrap and shortened Mod tag

* missed committing this

* Not fully resolving LayoutParams for consistency
2019-05-15 14:58:54 +02:00
Phillip Thelen
38952f1078 bump build number 2019-05-09 17:05:02 +02:00
Phillip Thelen
96da4b305c Fix owned item display 2019-05-07 14:37:03 +02:00
Phillip Thelen
904ef4fbb0 fix stats issue 2019-05-07 14:36:56 +02:00
Phillip Thelen
b558979024 Fix task reminders 2019-05-06 14:53:40 +02:00
Phillip Thelen
145d6bae40 fix manual langauge selection 2019-05-06 13:53:11 +02:00
Phillip Thelen
3733d65573 fix widget habit scoring 2019-05-06 13:50:18 +02:00