Commit graph

4209 commits

Author SHA1 Message Date
neslihanturan
0ef52659b3 Recover notifications state on come back to contributions list from media details fragment 2018-09-10 15:19:34 +03:00
neslihanturan
8aca9aa6b2 Change notification icon (add blue dot) whenever a notification comes 2018-09-10 15:02:23 +03:00
neslihanturan
b5e5165165 Add shared preferences provider for latest notification activity visit time 2018-09-10 11:23:34 +03:00
neslihanturan
6168aee6ac Add shared preferences provider for latest notification activity visit time 2018-09-09 21:39:45 +03:00
neslihanturan
a2be516bc5 Save latest time user notification activity viewed 2018-09-09 21:36:43 +03:00
neslihanturan
714b22b733 Add unread notifications asynctask to check unread notifications on background 2018-09-09 21:30:49 +03:00
neslihanturan
137533f25b Remove number of uploads from contributions fragment since we moved it text of tab layout 2018-09-09 18:40:21 +03:00
neslihanturan
0497737922 Add contribution number next to tab text for contribution, as discussed in thread 2018-09-09 18:35:08 +03:00
neslihanturan
01461d2508 GetPagerFragment instead of getActivity since currently ContributionsFragment take over responsibility from ContributionsActivity 2018-09-09 17:34:57 +03:00
neslihanturan
94201aa930 Return parent fragment instead of parent activity 2018-09-07 21:24:04 +03:00
neslihanturan
9707b4310b Make number of uploads visible if contribution list is visible and number of uploads is uploaded. Progress bar is visible if contribution list is visible and number of uploads are uploading. Both invisible if Media Details Fragment is visible 2018-09-07 21:22:19 +03:00
neslihanturan
f8d06717fa Create ContributionListViewUtils class to change visibility of views according to MediaDetailsFragment visiblity or their loading state 2018-09-07 21:16:47 +03:00
neslihanturan
270d341690 Make sure we called onAuthAcquired from fragment after is is attached 2018-09-07 21:06:37 +03:00
neslihanturan
f5a1d9836c Add contribution list layout with FABs for camera and galerry 2018-09-07 20:45:58 +03:00
neslihanturan
095082248c Add contributin list fragment 2018-09-07 19:30:50 +03:00
neslihanturan
738db8306f Register and unregister datasetObservers 2018-09-07 18:53:57 +03:00
neslihanturan
01052a83b3 Implement onBack Pressed settings 2018-09-07 18:50:21 +03:00
neslihanturan
5252f6d66b Override media count methods 2018-09-07 18:46:51 +03:00
neslihanturan
d8ca1ec191 Add delete and retry functionality, note: not tested yet 2018-09-07 18:45:16 +03:00
neslihanturan
9db815a89e Show details of an image when item is clicked 2018-09-07 18:43:41 +03:00
neslihanturan
f44f08c2af set MediaDetilsView fragment or ContributionListFragment according to users state 2018-09-07 18:40:17 +03:00
neslihanturan
f2ab66cb1f Override cursor loader methods 2018-09-07 18:35:01 +03:00
neslihanturan
722f1ae915 Create variables and methods to reuse and create Media Detils Fragment and Contributions List Fragment which will be inside Contribution Fragment 2018-09-07 18:21:15 +03:00
neslihanturan
d59a258b91 Inifilate contributions list fragment view 2018-09-07 18:06:03 +03:00
neslihanturan
7d8a44b75f Create Contributions Fragment structure which will hold Media Detail Fragment and Contributions List Fragment 2018-09-07 17:20:03 +03:00
neslihanturan
6c01530b4e Add theme dependent background color for tabs in main 2018-09-07 13:28:08 +03:00
neslihanturan
6a4d7fda0d Add theme dependent background color for Drawer Layout of activity_contributions layout file 2018-09-06 15:32:19 +03:00
neslihanturan
7b29ee5f63 Create setTabAndViewPagerSynchronisation method to sycn view pager and tab layout. If user swipe pages, tabs will also change (and vice versa) 2018-09-06 14:39:56 +03:00
neslihanturan
44b49d3336 Create strings will be written on tabs for contributions and nearby 2018-09-06 14:37:18 +03:00
neslihanturan
7540e0379e Add ContributionsActivityPagerAdapter inner class to manage view pager 2018-09-06 14:23:45 +03:00
neslihanturan
169fcb5727 Add NearbyFragment which will hold NearbyMapFragment and NearbyListFragment 2018-09-06 14:08:37 +03:00
neslihanturan
19415d94e9 Create ContributionsFragment which will hold ContributionsListFragment and MediaDetailsFragment 2018-09-06 14:07:29 +03:00
neslihanturan
3f8d219a8b Add tabs and fragments method 2018-09-06 14:05:46 +03:00
neslihanturan
df1d5527e6 Override auth cookie required 2018-09-06 13:56:38 +03:00
neslihanturan
14ce5da674 Bind views 2018-09-06 13:48:34 +03:00
neslihanturan
dccbe329c1 Add layout for new Contributions Activity design 2018-09-06 13:41:25 +03:00
neslihanturan
48a6c7a78b Delete Contributions Activity content to rewrite it 2018-09-06 13:24:09 +03:00
Josephine Lim
78f83230ee
Update credits.md 2018-09-04 19:37:39 +10:00
translatewiki.net
2efd39bd14 Localisation updates from https://translatewiki.net. 2018-09-03 08:08:46 +02:00
Mansi Agarwal
3f52211b91 Add angle bracket (#1868)
app/src/main/res/values/strings.xml: Add the missing angle bracket.
2018-09-01 17:19:38 +10:00
Mansi Agarwal
430bf90310 Added CDATA tag (#1836)
* Fix issue#1772

Add the CDATA tag to welcome_help_button_text string. Set the text of the corresponding textview using Html.fromHtml() function.

* Fix issue#1772

Add the CDATA tag to nominated_see_more string. Set the text of the corresponding textview using Html.fromHtml() function.
2018-08-31 11:44:36 +03:00
Dmitry Brant
2884bd934a Remove dependency on Glide, Picasso, SVG, and multidex. (#1859)
* Eliminate the use of Picasso.

This gets rid of the single use of the Picasso library (which was causing
the whole library to be imported and shipped) and replaces it with Glide.
TODO: replace this and the other instance(s) of Glide usage with Fresco,
or vice versa.

* Remove dependency on Glide.

This removes the dependency on Glide, as well as the SVG rendering
library, whose only purpose was to display a single SVG image in the
Notification activity. Unfortunately Android doesn't support SVG natively,
but Echo notifications have icons that are SVG formatted. Rather than
import a bunch of heavy libraries to support this single case of SVG
rendering, we can simply create a few local drawables that correspond to
the different types of notifications, and use them instead.

* Remove multidex!

Multidex is a killer of performance and should be avoided at all costs.

* Remove further unused bits.

* Remove final vestige of multidex.
2018-08-30 14:40:17 +03:00
albendz
a059a3c2ef Add button on image details to copy wikicode to clipboard (#1849)
* Add button on image details to copy wikicode to clipboard

* Make copy wikicode button width the same as the nominate deletion button width by filling in background
2018-08-27 19:13:50 +10:00
Dmitry Brant
e945d45558 Work towards eliminating string literals from code. (#1861)
String literals are being used in many places in the code, instead of
proper string resources which are automatically localized. This PR
replaces many of the string literals with pre-packaged resources, or will
add the appropriate string if necessary.
2018-08-27 19:10:50 +10:00
translatewiki.net
b84e22c292 Localisation updates from https://translatewiki.net. 2018-08-27 07:39:43 +02:00
Ashish Kumar
355c4f5b0a Feature/nearby io fix (#1847)
* Bug fix issue #1839, changes
* Extracted out PageTitle object's member varaible, displayText in a variable in findTemplate() in MediaDataExtractor
* added null checks for the same varaible [Lets be safe side]
* replaced equals with contains, ie. displayText.contains(title), so that uploads from multiple sources which have different formats still show up coordinates which was not being shown earlier

* Bug fix issue #1846
1. Added null check in places in loadAttractionsFromLocation() in NearbyController
2. Catched exception in getFromWikidataQuery() which getFromWikidataQuery( )[Could be because of anything, primarily io].

* code formatting, adjusted whitespaces

* return places which is initialised to empty list instead of null for places

* replace catching Exception with the excact exception, ie. InterruptedIOException in NearbyPlaces
2018-08-24 22:36:23 +05:30
translatewiki.net
4baabab960 Localisation updates from https://translatewiki.net. 2018-08-23 08:13:52 +02:00
Ashish Kumar
e4584217d2 Bug fix issue #1839, changes (#1845)
* Extracted out PageTitle object's member varaible, displayText in a variable in findTemplate() in MediaDataExtractor
* added null checks for the same varaible [Lets be safe side]
* replaced equals with contains, ie. displayText.contains(title), so that uploads from multiple sources which have different formats still show up coordinates which was not being shown earlier
2018-08-22 10:13:36 +05:30
Vivek Maskara
4ea7229876 Null checks for activity to prevent unwanted crashes (#1730)
* Null checks for activity to prevent unwanted crashes

* With logs before return statements
2018-08-20 14:56:03 +03:00
Vivek Maskara
e13e2c2f40 Fix issue where beta prod flavour could not be installed at the same time (#1841) 2018-08-20 13:59:14 +03:00