Commit graph

5156 commits

Author SHA1 Message Date
Prince kushwaha
ecd19e389c
fixes #4026 (#4041)
* TextInputLayout does not support multiple line textView
* Add the TextView to show the @string/depicts_search_text_hint
2020-11-23 21:29:22 +10:00
translatewiki.net
e39ace5d95 Localisation updates from https://translatewiki.net. 2020-11-19 15:45:46 +01:00
neslihanturan
ffdfb05d5f
Fix black map issue (#4040) 2020-11-18 05:11:34 +10:00
Anadi Kashyap
c93ab86d65
upload: added titles for each step of upload with a tooltip for futher explanation (#4030) 2020-11-17 19:14:16 +10:00
translatewiki.net
d2b6c7002b Localisation updates from https://translatewiki.net. 2020-11-16 15:13:31 +01:00
Madhur Gupta
2ed5a74b4d
Added Test for BookmarksPagerAdapter (#4027) 2020-11-10 20:25:01 +10:00
translatewiki.net
1baea1ef74 Localisation updates from https://translatewiki.net. 2020-11-09 12:34:51 +01:00
Vivek Maskara
6fa8cc627a
Increase chunk size to 1MB (#4011)
* Increase chunk size to 1MB

* Increase timeouts

* Add logs

* Enable HTTP logging

* Encode file name

* Update chunk size

* Add toast
2020-11-09 19:41:49 +10:00
neslihanturan
71d200ee41
Fixes #2843 New main screen UI in v3.0 (#3891)
* Add additional classes from 2019 hackathon implementation

* Make first tab work

* Make explore tab work

* Handle back button for contrib and nearby

* Fix framelayout and nav bar allignment

* Fix nav bar tint

* Fix nearby card layout

* Make contributions number visible

* Change menu icon according to fragment

* Make notification icon work and remove drawer

* Make favourites accessible from nav bar

* Turn bookmark and explore activities into fragments

* Use bottom sheet instead of more fragment

* Add actions

* Remove unused classes

* Fix indentation

* remove more fragment title

* Fix explore fragment indentation

* Make toolbar settings as we wanted

* Set card view styles

* Make colors for explore actiivty

* Remove drawer from achievements activity

* Add back button to achievements activity

* remove drawer from review activity

* Remove drawer from settings activity

* Remove drawer from about activity

* Fix dagger injection of fragment

* Implement skip login version

* Add theme missing colors

* Add style to moresheet

* refactor name

* call login with button

* Remove all old bookmarks activity dependency

* Make explore tab items clickable

* Do nothing if same tab is selected

* Fix notification icon color for dark theme

* Fix wrong drawable colors

* Handle back button after media details is visible from contrib and explore fragments

* make favourites open media details

* Fix profile icon

* Make user name visible instead

* Move user back to contrib fragment

* Remove NavigationBaseAvticity

* Fix typo in bookmark fragment

* Fix menu button colors

* Remove explore activity

* remove drawer and dependencies

* Make bookmark media details visible

* Cleanup code

* Code cleanup

* Remove unused layout

* Make contriblist UI look like in mockups

* Change limited connecton toggle

* Move list menu item to nearby fragment

* Fix search button crash

* Make media detail appear

* Back button added

* Fix back button npe

* Change bookmark list view

* Fix always the firs item displayed issue

* Allign contrib list bottom line to simple drawee bottom

* fix fragment string

* Fix back button for mobile uploads

* Make lists appear

* Make fav item selected

* Make favourites clickable

* Add back button to media details

* Add toolbar of notification activity

* Change contributions icon

* Fix card UI

* Fix back button in explore

* Make card views look similar to mockups

* Solve campaign bug visible issue

* Make borders a little softer
2020-11-07 02:04:04 +10:00
translatewiki.net
5d82629109 Localisation updates from https://translatewiki.net. 2020-11-05 13:18:19 +01:00
積丹尼 Dan Jacobson
d4b73fad7f
Make "Save Pictures" option clear (#4006) 2020-11-03 00:31:17 +05:30
translatewiki.net
203d44e099 Localisation updates from https://translatewiki.net. 2020-11-02 12:38:44 +01:00
積丹尼 Dan Jacobson
ee2f7e51b6
"Tapping" misleading for switch (#4009)
This is a switch. "Tapping" shouldn't be mentioned here.
2020-11-01 22:12:32 +05:30
Mugurell
c793827c5c
For #3997 - Add new FOREGROUND_SERVICE permission for AndroidP+ (#4002)
On Android 28+ this is required for starting foreground services.
It is a normal permission, automatically granted by Android.
2020-10-30 08:54:02 +09:00
translatewiki.net
585304190f Localisation updates from https://translatewiki.net. 2020-10-29 13:15:26 +01:00
Josephine Lim
9d99c2598f
Update target SDK to 29 (#3940) 2020-10-28 22:56:07 +05:30
Rebecca Rothschild
ee3e52d0c6
#3980 Hitting "My Rank" button from a list position below your rank on leaderboard takes you to the person ranked below you (#3990)
* Refactored scrollToUserRank to account for users scrolling from below their rank

* Refactored my change to use a similar method

* Added comments to change

* Removed leftover cruft

* Reverted package updates

* Added tests for the LeaderBoard UI
2020-10-28 23:21:58 +09:00
Ashish
39221f5365
Fixes #3767 (#3965)
*Set a default value of 0 to avoid invisibility, before calling the API.
2020-10-27 21:01:22 +03:00
Prince kushwaha
3fa391f8ef
Losing filled data when screen rotate (#3973) (#3982)
Fixes #3973

* Add an attribute android:configChanges="screenSiz orientation|screenLayout" in  auth.SignupActivity Manifes.xml
2020-10-27 23:28:00 +05:30
translatewiki.net
ebaf9bf6bd Localisation updates from https://translatewiki.net. 2020-10-26 15:55:05 +01:00
Ashish
285422e23d
Fixes #3788 (#3966)
*Distinctively show quality images and featured images in Achievements
2020-10-26 17:03:10 +10:00
Ashish
2ea966ab09
Fixes #3981 (#3983)
* Start the upload service when needed and not in the MainActivity directly
2020-10-25 22:50:20 -07:00
Vivek Maskara
6c55525a43
Handle failures in chunk uploads (#3916)
* Handle failures in chunk uploads

* Fix failures

* Upload fixed

* Handle multiple file upload

* Increase request timeout
2020-10-25 12:26:48 +05:30
Madhur Gupta
0d5fa048a5
Added Unit Test for About Activity Class (#3978) 2020-10-24 11:02:23 +05:30
translatewiki.net
f36561f0c7 Localisation updates from https://translatewiki.net. 2020-10-22 12:57:24 +02:00
Kaartic Sivaraam
409e43c3ae
README: use F-droid badge with surrounding space (#3979)
* README: use F-droid badge with surrounding space

The F-droid badge in Commons has a newer revision that doesn't have
the surrounding blank space thus resulting in it being rendered bigger
than the play store badge.

Link to the older version of the image with surrounding blank space
to ensure both badges are of the same size.

* REDAME: bring back alt text for F-droid badge

Re-add the unintentionally removed F-droid badge alt text.
2020-10-21 22:22:41 +03:00
Ashish
1fc8c15c08
Fixes #3547 *Catch possible SqliteException while deleting ContributionsDao's entries (#3964) 2020-10-20 17:54:44 -07:00
Ashish
b8ba89d077
Fixes #3923 (Back" does nothing in Nearby in particular circumstance) (#3961)
* Fixes #3923
* Handled possible missing backpress cases in MainActivity-nearby

* Fixes #3923
* Handled possible missing backpress cases in MainActivity-nearby
2020-10-20 12:41:17 -07:00
translatewiki.net
6e8e4f7a41 Localisation updates from https://translatewiki.net. 2020-10-19 14:51:26 +02:00
translatewiki.net
2f2e948a46 Localisation updates from https://translatewiki.net. 2020-10-12 15:47:21 +02:00
Ashish
f6963c8d47
Fixes #3845 (Contributions list starts at the last uploaded pic, not the currently uploading one) (#3962)
* Fixes #3845

* Fixes #3845
*Scroll to the top when a new upload item is added in a contribution list
2020-10-12 19:32:16 +10:00
Ashish
4571b76b82
Fixes #3943 (#3963)
* Fix telemetry opt-out preference toggler
2020-10-12 19:31:48 +10:00
Ashish
a85bd032a3
Fixes #3920 Send Log File" does not collect updated logs (#3958)
* Fixes #3920
* Delete stale log files post the zip file's size reaches 1000kb

* Fixes #3920
* Delete stale log files (if the size reaches more than 1000kb) on App startup to make room for fresh logs
2020-10-11 22:47:34 +10:00
translatewiki.net
7c5fafa4aa Localisation updates from https://translatewiki.net. 2020-10-08 15:51:12 +02:00
neslihanturan
2001da5471
Add tests for LatLng class (#3955) 2020-10-07 21:49:41 +10:00
neslihanturan
b9de8dc145
Add tests for FilePicker public methods (#3948) 2020-10-07 01:34:39 +10:00
Madhur Gupta
67c0004062
Added Test for Quiz Classes (#3953) 2020-10-06 16:36:20 +03:00
translatewiki.net
cb3de85646 Localisation updates from https://translatewiki.net. 2020-10-05 15:54:59 +02:00
translatewiki.net
b3d9bd6883 Localisation updates from https://translatewiki.net. 2020-10-02 09:03:58 +02:00
neslihanturan
44fb1534bb
Add bookmark location controller test (#3947) 2020-10-01 19:21:33 -07:00
neslihanturan
257e8c57dd
Add MediaConverterTest (#3945) 2020-09-30 12:00:43 -07:00
translatewiki.net
6ddc15a535 Localisation updates from https://translatewiki.net. 2020-09-28 17:13:51 +02:00
Vivek Maskara
66f6e2e648
With changes for limited connection mode (#3934)
* With changed for limited connection mode

* Java docs

* With minor fix

* Fix cosmetic issues

* Fix ANR

* Add Unit test
2020-09-25 22:57:22 +10:00
translatewiki.net
59ee7b8df2 Localisation updates from https://translatewiki.net. 2020-09-24 15:53:25 +02:00
translatewiki.net
4dc59aef12 Localisation updates from https://translatewiki.net. 2020-09-21 16:01:05 +02:00
Madhur Gupta
66469e006a
Added Unit Tests for WelcomeActivity Class (#3933) 2020-09-19 01:05:42 +10:00
translatewiki.net
93225149d8 Localisation updates from https://translatewiki.net. 2020-09-17 16:38:59 +02:00
translatewiki.net
fbe68e12c5 Localisation updates from https://translatewiki.net. 2020-09-14 17:00:16 +02:00
Ashish
ddd3e1212a
Sync master with release (#3922)
* #3624 DateTimeFormat wrong - match pattern returned from servers (#3625)

* Revert "Fixes: #3179 Make category search non case-sensitive (#3326)" (#3636)

Simply lower casing the name of the category sent to the server
doesn't result in the server doing a case insensitive category
search. In fact, it reduces the category search space as only
categories that has a lower case character is searched even
if the search text contains upper case characters.

The test case did not catch this issue as the first character
of the title is case insensitive[1].

So, revert the changes done in commit afdeaae075.

See further disucssion in the issue thread of #3179 starting
from [2].

[1]: https://www.mediawiki.org/wiki/Manual:Page_title
[2]: https://github.com/commons-app/apps-android-commons/issues/3179#issuecomment-605462140

* Bugfix/security exception (#3627)

* Fixes #3626
* Check is file is actually created before writing to file, file picker android

* Handle Security exception

* Fixes #3436 and #2881: Media Detail design Overhaul (#3505)

* ic_map_dark_24dp: map icon for white background

* ic_info_outline_dark_24dp: info icon for dark background

* MediaDetailFragment: update the spacer as per image aspect ratio

* fragment_media_detail: design overhaul

* fragment_media_detail: remove redundant background color statements

* make requested changes

* add dark mode support

* minor ui tweak

* white map icon in dark mode

* make rquested changes

* make requested changes to layout

* fix misalignment of category list

* subtle amendments

* convert comments to javadocs

* minor amendments

* minor changes

* add styles for media detail

* Media detail fragment refactored

* make suggested changes

* minor name fix

* fix the delete button border

* Fixes #3639 (Fix Save State implementation of CheckBoxTriState ) (#3686)

* Add #3723 and #3721 to 2.13 release, fix conflicts

Conflicts were caused by merging #3723 before #3721 , so I just rolled both into one commit.

* Fix NullPointer when clicking on image in MediaDetailFragment (#3730)… (#3739)

* Update changelog.md

* Versioning for v2.13

* Fixes #3705 (Crash when viewing pic I just uploaded) (#3782)

* Fixes #3705
* Let the MediaDetailPager fragment know when the contributions have been updated

* Handle NPE, null check on adapter in MediaDetailPagerFragment

* Fixed BookmarkLocationsDao DB migration (#3793)

* Fixes #3725 (#3795)

* Downgraded okhttp version to support Api 19 devices

* Handled null CompoundDrawable[2] in etTitle-> UploadMediaDetailsFragment (#3828)

* DownSample Upload image to be shown in UploadMediaDetailFragment to handle OOM, Bitmap Too large exception (#3830)

* Fixes #3829
* DownSample Upload image to be shown in UploadMediaDetailFragment to handle OOM, Bitmap Too large exception

* removed unused imports, handled possible exceptions

* Let Fresco handle the downsampling of image

* invalidate in onTransformEnd

* Expose an interface TransformationListener in ZoomableDraweeView to listen to transformation change end

* removed photoView dependency

* removed unused imports in ZoomableActivity

* Bugfix, expand/collapse

* changed functio name

* Bugfix/p18 uploads (#3869)

* updated gradle plugin version

* BugFix #3856
* Do not use preference for deciding acceptable lat long for nearby uploads, instead save the corresponding location in the Contribution via UploadItem

* Marshall contribution's hasInvalidLocation

* reset un-related changes

* Fixed test cases

* Minor code formatting and docs

* Fixes #3882 (#3883)

* Make hasInvalidLocation non-null integer with default value 0

Co-authored-by: Ashish Kumar <ashish@Ashishs-MacBook-Air.local>

* Fixes #3766, Added OPENSTREET attribution (#3889)

* Fixes #3766
* Added OPENSTREET attribution in nearby

* Added custom text attribution in Nearby

* Deleted unused class CustomBorderTextView

* review suggested changes

* modified telemetry summary string

* Versioning and changelog for v2.13.1 (#3908)

* Update changelog.md

* Versioning for v2.13.1

* Fixes #3914 (#3915)

* Verify user login before setting upload count

* fixed compile-time error

* fix erros

* delete emptied files

* remove empty file CategoriesModel.java

Co-authored-by: Seán Mac Gillicuddy <seantheappdev@gmail.com>
Co-authored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Co-authored-by: Kshitij Bhardwaj <44129798+kbhardwaj123@users.noreply.github.com>
Co-authored-by: Vitaly V. Pinchuk <vetal.978@gmail.com>
Co-authored-by: Josephine Lim <josephinelim86@gmail.com>
Co-authored-by: Ashish Kumar <ashish@Ashishs-MacBook-Air.local>
2020-09-14 21:11:46 +10:00
Madhur Gupta
abdd16c063
Added Test for LevelInfo Class (#3930) 2020-09-13 18:31:25 -07:00