Commit graph

4275 commits

Author SHA1 Message Date
tanvidadu
f6a2df6c4f Shifted strings to String.xml 2018-11-04 12:39:21 +05:30
Vivek Maskara
27123f5317 Crash fix due to bookmarks authority on prod variant (#1977) 2018-11-03 13:12:07 +00:00
Edward Savage
b2e5ad0c26 Remove redundant type casts (#1929) 2018-11-03 12:51:47 +00:00
spelka
ef73204cc0 Fix #1921, missing information about internet connectivity on nearby page
The reported issue is that in the Nearby activity, the app does not communicate that there is no internet connection. On investigation, it appears that a toast message does briefly display "No internet connection". It looks like other activities have implemented this same message within the snackbar instead. In order to have a consistent style of communication to the user, I removed the toast message and replace it with the snackbar message, as implemented in NotificationActivity.java.
2018-11-03 12:37:57 +00:00
tanvidadu
af3cabfb36 Fixed Conflicts 2018-11-03 14:12:21 +05:30
tanvidadu
079aabde99 Made changes 2018-11-03 14:12:21 +05:30
tanvidadu
b07282f5af Added resaons in dropdown list 2018-11-03 14:12:21 +05:30
Edward Savage
e8f4a286c5 Lambda usage simplifications (#1928)
* Replace anonymous type with lambda
* Use method reference
* Replace with expression lambda
2018-11-02 18:28:42 +00:00
Sanket Pimple
1f8063284c Fix #1914, bug involving description info dialogue hitbox
Fix #1914 using getX() instead of getRawX() method and subtracted right padding to get the value. Now info dialog opens only on touch of the icon (#1915)
2018-11-02 13:20:13 +00:00
Nicolas Raoul
178e53515e Moved marketing material to https://github.com/commons-app/marketing 2018-11-02 20:11:55 +09:00
Piyush20001
edbc07f996 Added screenshots for Hindi. 2018-11-02 10:34:03 +09:00
freddytuxworth
3ccd690ce0 Add space after if (#1954) 2018-11-01 19:33:09 +02:00
translatewiki.net
042e4662f5 Localisation updates from https://translatewiki.net. 2018-11-01 08:05:57 +01:00
Henrique Guedes
293cccd897 Null checks to avoid NPEs (#1917) (#1918) 2018-10-31 20:25:49 +11:00
konohakesh
154f1622b2 Fix crash on notifications #1959 (#1964) 2018-10-31 20:22:39 +11:00
translatewiki.net
01112081ba Localisation updates from https://translatewiki.net. 2018-10-29 07:58:48 +01:00
Nicolas Raoul
e55b4600ec More screenshots 2018-10-29 13:04:23 +09:00
Divyanshu Shukla
464a6b5215 Fixed #1930 Achievements activity is crashing on Android 8.1 (#1938) 2018-10-28 22:01:22 +05:30
Akiyamamio987
1ee4472ffc Delete index.html 2018-10-28 16:32:17 +09:00
Akiyamamio987
ce29b4d4a6 Added screenshots for Urdu-PK 2018-10-28 16:32:17 +09:00
Akiyamamio987
bcde4bf2f5 Create index.html 2018-10-28 16:32:17 +09:00
Howieboss02
e1ee73c802 Added screenshots for Polish 2018-10-26 15:35:43 +09:00
Victor-Bonin
80a9c94653 Feature #1756 : Bookmark System (#1935)
* Add bookmark star images

* Add bookmark item in navigation menu

* Add Activity for bookmarks

* Implement bookmarks viewpager

* Bookmark object and bookmarkDao

* Implement Bookmark Picture Fragment and Controller

* Implement image detail bookmark menu action UI

* contentProvider + config + dao rework

* Fix Dao and Content Provider crashes

* Link bookmark controllers and dao

* Implement bookmark location fragment, controller

* Add bookmark icon to location items

* Add empty bookmark list behavior and refactoring

* bookmarkLocation dao and contentProvider

* Fix bookmarks location crashes

* Rename and refactor classes

* Implement location list refresh

* Fix picture list update
When user come back from detail picture fragment, it solve the refresh bug.

* full test coverage

* Refactor bookmarks classes

* Fix bookmarks pictures loading

* Fix bookmark locations list display

* Java Documetation

* Fix Code review quality

* Fix DB version update

* Remove forgotten todo

* Update bookmark activity base class
Change from AuthenticatedActivity to BaseNavigationActivity
2018-10-26 02:54:22 +11:00
Amir E. Aharoni
89d2d0cfe0 Make the message "Send log file" consistent (#1949)
Addresses #1946.
2018-10-25 19:39:20 +11:00
translatewiki.net
419ae7f7f3 Localisation updates from https://translatewiki.net. 2018-10-25 10:16:51 +02:00
translatewiki.net
2ae362eb31 Localisation updates from https://translatewiki.net. 2018-10-22 07:53:43 +02:00
Rulino
2af57fc594 Empty screen if no upload fix (#1940)
* Updated contribution screen to show message for no uploads by default, message gets wiped after any picture is inserted into the list

* Changed string as suggested

* Added margin
2018-10-20 20:30:02 +05:30
translatewiki.net
6bee91496e Localisation updates from https://translatewiki.net. 2018-10-18 08:16:30 +02:00
translatewiki.net
8526605765 Localisation updates from https://translatewiki.net. 2018-10-15 09:23:05 +02:00
Vivek Maskara
b0b4b08100 Fix log reporting for release builds (#1916)
* Fix log reporting for release builds

* Fix logs for release builds

* wip

* Clean up the branch to exclude unrelated changes

* With java docs

* Uncomment quiz checker

* Check for external storage permissions before sending logs

* With more java docs

* Fix crash while zipping log files

* Do not log token and cookies

* Add instruction to restart app
2018-10-14 22:19:43 +11:00
Vivek Maskara
02fe0044a6 Merge release branch to master (#1932)
* Bugfix/upload via share (#1920)

* Bug Fix #1878
* Added a java library to fetch the MIME type from input stream
* Fetch MIME type using this and use the contribution tag only when this fails:

* formatting changes, removed unused commented out line

* Versioning and changelog for v2.8.5 (#1923)

* Versioning for v2.8.5

* Update changelog.md
2018-10-13 19:45:00 +11:00
Edward Savage
e36a71a584 Optimize imports (#1927) 2018-10-13 18:31:25 +11:00
translatewiki.net
69e4d96b89 Localisation updates from https://translatewiki.net. 2018-10-09 10:16:46 +02:00
translatewiki.net
825a1a0bdd Localisation updates from https://translatewiki.net. 2018-10-03 22:00:14 +02:00
Dmitry Brant
e0a79f89e9 Fix crash(es) due to uninitialized notification channel. (#1906)
* Fix crash(es) due to uninitialized notification channel.

The notification channel needs to be created for API versions greater than
OR EQUAL to 26 (O).  Also, the channel does not need to be reinitialized
if it already exists.

* Initialize notification channel when Service is created.
2018-09-28 01:39:32 +10:00
translatewiki.net
1b7c72e192 Localisation updates from https://translatewiki.net. 2018-09-20 11:03:14 +02:00
translatewiki.net
402fc4e05d Localisation updates from https://translatewiki.net. 2018-09-17 08:04:37 +02:00
Ashish
409b06078d correction in github profile url..and added and many more below the list of contributors 2018-09-14 20:54:22 +09:00
Ashish
e3f5dcfac8 added the list of contributors in readme issue#1774 2018-09-14 20:54:22 +09:00
translatewiki.net
17116a77cd Localisation updates from https://translatewiki.net. 2018-09-13 10:52:21 +02:00
Vivek Maskara
54a8e8dee6 App no longer uses JSoup and Rssparser (#1897) 2018-09-12 14:10:58 +03:00
Vivek Maskara
86e849683a
Refactor code to remove usage of Jsoup and Rssparser (#1888)
* Refactor code to remove usage of Jsoup and Rssparser

* Use current date for picture of the day
2018-09-11 21:14:41 +05:30
Dmitry Brant
fc30f1b5ec Sweeping update of gradle and dependency versions. (#1858)
* Sweeping update of gradle and library versions.

This updates all of the dependencies of the project to their latest
versions. Everyone should please upgrade to the latest version of Android
Studio, update your build tools, and keep your version of Gradle and the
Kotlin plugin up to date.

* Update build tools in travis.

* Remove cruft and fix tests.

* Remove even more stuff.

* Reinstate instrumented tests.

* Update emulator image in travis.

* Localisation updates from https://translatewiki.net.

* 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.

* 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

* Build fix

* Enable ProGuard for Debug and Release builds.

This enables ProGuard minification, which significantly shrinks the APK
(for both debug and release configurations) and vastly decreases the
method count.

* Add ProGuard rules for test builds.
2018-09-11 11:51:28 +03:00
Dmitry Brant
1dd7cbb614 Fix incorrect Fresco initialization. (#1895)
Fresco only needs to be initialized once, in the Application class.
Initializing it again can lead to undefined behavior, including crashes.
2018-09-10 20:35:51 +05:30
Dmitry Brant
91f3f2e505 Fix possible crashes due to misplaced vector drawables. (#1894)
Vector drawables do *not* belong in dpi-specific subfolders. They should
always be placed in the general "res/drawable" folder. This can actually
cause crashes on certain devices.
2018-09-10 18:19:08 +10:00
translatewiki.net
099dce4f95 Localisation updates from https://translatewiki.net. 2018-09-10 08:17:47 +02:00
Amir E. Aharoni
8451e8274b Replace "wikicode" with "wikitext" (#1892)
The usual term in English is "wikitext" and not "wikicode".
2018-09-08 17:14:11 +03:00
Vivek Maskara
a63b9f88bb
Merge 2.8 release with master (#1887)
* Add Traceur for getting meaningful RxJava stack traces (#1832)

* Hotfix for overwrite issue in 2.8.0  (#1838)

* This solution is an hotfix for overrite issue came back on 2.8.0 version. What I did is checking the extension, and if it is null, adding .jpg suffix. Because commons files always have suffixes, and we should compare file names after adding suffixes. Othervise overrides are possible.

* Check if file title includes an extension already, by checking if is there any dot in it.

* Fix logic error

* Add uncovered tests

* Remove unecessary line breaks

* Make Javadocs more explicit

* Versioning and changelog for v2.8.2 (#1842)

* Versioning for v2.8.2

* Changelog for v2.8.2

* Add logs in wiki data edit and session refresh flow (#1874)

* Fix logout (#1875)

* [WIP] Refactor feedback and quiz to reduce possibility of NPE (#1881)

* Refactor feedback and quiz to reduce possibility of NPE

* Handle throwables in quiz checker

* Minor refactoring

* Set Traceur to only work in DEBUG mode (#1884)

* Bug fix for uploaded images count in achievements activity (#1885)

* Versioning and changelog for v2.8.3 (#1886)

* Update changelog.md

* Versioning for v2.8.3
2018-09-07 05:50:41 +05:30
Mansi Agarwal
13c377aa17 Improve the algorithm for detecting unwanted images. (#1798)
* improve the algorithm for checking if the image is dark.

ImageUtils.java: algorithm used previously gave the 'TOO DARK' message for images that were perfectly valid.
The modified algorithm solves this problem.

* Clean up the code
2018-09-07 05:18:38 +05:30
Ashish Kumar
92a8b5e37c Added views for button skipLogin in layout-land and layout-xLarge, bu… (#1865)
* Added views for button skipLogin in layout-land and layout-xLarge, bug fix issue#1864

* xml improvisations

* Fixed string nominated_see_more [CDATA was used inappropriately]
2018-09-07 05:17:23 +05:30