Commit graph

55 commits

Author SHA1 Message Date
maskara
4ac8f88ec2 Fixes privacy policy link in Login page 2018-03-11 01:36:19 +05:30
Ayushi Negi
cfc1449615 Launch Rate Us Feature from AboutActivity (#1264)
* Launch Rate Us Feature from AboutActivity

Rate us feature is added in Utils, But it is never used/launched.

* Add LaunchRatings Method in AboutActivity

* Fix Package Name to enable rate us feature

The rate us feature was not working for the debug build type since getPackageName() was returning the fr.free.nrw.commons.debug. Use of this package name was leading to an error on google play.

* Replace getPackageName() with BuildConfig.class.getPackage().getName() in rateApp method of Utils.java
2018-03-07 06:44:51 +05:30
Ujjwal Agrawal
eeaa9a90ba
Merge branch 'master' into feat5 2018-02-27 12:17:29 +05:30
Ujjwal Agrawal
fc8b522ac4 Rate Us method added to Utils.java and called on AboutActivity.java 2018-02-27 12:04:04 +05:30
Ujjwal Agrawal
96173e26cf Changed Webviews to Custom Tabs in Nearby Places Dialog, AboutUsActivity (#1185)
* Changed Webviews to Custom Tabs in Nearby Places Dialog, AboutUsActivity

* Created method handleWebUrl in Utils.java
2018-02-25 00:27:49 +05:30
Jón Freysteinn Jónsson
fc7bdc62fb Fix some javadoc issues 2018-02-15 13:20:56 +01:00
Prajeen Govardhanam
d3f2ef32fd
Update Utils.java 2017-12-21 20:58:02 +05:30
prajgov
7e6374f11a added JavaDoc comments 2017-12-19 20:54:28 +05:30
Clay Tsay
eeea0774b6 Added JavaDocs
Added JavaDocs to various files, namely License, Media, PageTitle, and Utils.
2017-12-10 00:28:51 -08:00
Paul Hawke
02b5b9b680 Merge branch 'master' into dependency-injection 2017-11-24 22:30:08 -06:00
maskara
8dd8e09f2a Fixes NPE in Util function 2017-11-16 17:32:45 +05:30
Paul Hawke
f134d23ecb Merge branch 'master' into dependency-injection 2017-10-21 17:20:56 -05:00
Vishan Seru
836a1e3664 Added option in SettingsFragment to allow users to send the logs as a file via email 2017-10-21 13:44:06 +05:30
poojithakr
fc9cd0a3b7 Fixing codacy issues. Reduced reported count from 550 to 518. 2017-10-04 00:28:11 -07:00
Paul Hawke
2d91e81121 Merge branch 'master' into dependency-injection 2017-09-13 20:29:50 -05:00
Paul Hawke
a208c9f273 Further reduced coupling between classes and the need to @Inject the account utils class, fixed imports. 2017-09-10 10:37:58 -05:00
Paul Hawke
ca4b99a1cc Product flavors to allow switching between the production and the beta-cluster Wikimedia servers. 2017-08-26 15:42:44 -05:00
Paul Hawke
d0a85dbd82 Moved single-use code out of Utils over to where it's actually used. 2017-08-26 08:57:16 -05:00
Paul Hawke
7880a08c30 Ensure that activities and content providers are integrated into DI. 2017-08-26 08:56:15 -05:00
mebr1416
0c303298b2 Resolve for "Day mode by default #825" 2017-08-04 18:40:22 +03:00
Yusuke Matsubara
d241d36d66 Add PageTitle class to canonicalize page names 2017-07-13 18:29:30 +09:00
Yusuke Matsubara
39617790f5 Merge pull request #680 from Deskana/fromhtml
Fix usage of deprecated function String.fromHtml(String)
2017-05-28 19:01:30 +09:00
Deskana
14326ae3d0 Fix usage of deprecated function String.fromHtml(String)
String.fromHtml(String) is now deprecated. This patch fixes that by adding a method to Utils that selects the appropriate function based on the user's platform.
2017-05-26 13:52:01 +01:00
Deskana
7a8e04eec1 Simplify if statements
This patch simplifies a few if statements by replacing them with returns, which helps improve code readability and simplicity.
2017-05-26 11:16:22 +01:00
Dmitry Brant
9469bf29e4 Remove dependency on old image-loading library, and remote a lot of code. 2017-05-19 16:24:04 +02:00
Neslihan
e79d18f439 Fix codacy 2017-05-14 15:59:00 +03:00
Neslihan
dc1b04f3ed Switch map button accoding to map and list 2017-05-14 15:51:50 +03:00
addshore
5f6f67d3e2 Use switch statements instead of long if elseifs 2017-05-13 12:52:22 +02:00
addshore
6b75810f37 Collapse try blocks 2017-05-13 12:51:43 +02:00
Yusuke Matsubara
040d99638c Show failed value on license-related RuntimeException 2017-05-12 21:31:10 +09:00
veyndan
d33935c70f Use Timber for logging 2017-04-17 16:41:56 +01:00
Yusuke Matsubara
87b3132d21 Keep obsolete license values to prevent crashe after upgrade 2017-04-16 12:45:16 +09:00
Yusuke Matsubara
8731987385 Generate Nearby list using Wikidata Query
Plus,
* remove duplicate location service manager
* add option to switch data sources of Nearby
* faster sorting of places
* minor coding style improvents
2017-04-14 17:38:45 +09:00
Adam Jones
0fe7a05731 Create SettingsFragment 2017-04-02 16:37:46 +01:00
Adam Jones
c14795043e Merge pull request #469 from veyndan/async-util
Remove AsyncTask utility methods
2017-03-24 23:21:32 +00:00
veyndan
36fe8e3089 Remove AsyncTask utility methods 2017-03-24 23:03:56 +00:00
veyndan
06aeede864 Remove unused method implode(…) 2017-03-24 04:30:08 +00:00
Josephine Lim
3a813dd302 Merge pull request #421 from maskaravivek/fixLintIssues
Fix lint issues
2017-03-12 20:44:55 +10:00
maskara
6cecaf9e8c Fixes #426: Crash fix caused by NPE 2017-03-12 14:18:41 +05:30
maskara
f6f197edbc Minor changes as suggested in comments 2017-03-12 14:00:59 +05:30
maskara
2a7cb20745 Fix lint issue: Locale in date formats 2017-03-11 00:31:31 +05:30
maskara
5ccd24eb33 Fix lint issue: Default locale 2017-03-10 23:37:22 +05:30
maskara
8f6a201d35 Fixes #144: Add CC 4.0 to license options 2017-03-05 03:44:04 +05:30
veyndan
fe42731ee6 Replace fully qualified names with imports 2017-03-02 14:39:08 +00:00
veyndan
d49706ef70 Remove unnecessary imports 2017-03-01 19:15:28 +00:00
misaochan
81503befb0 Add comments 2016-12-15 15:30:33 +13:00
misaochan
bd949f4fd9 Add comments 2016-12-14 16:10:41 +13:00
misaochan
630eebeeac Removed unnecessary comments 2016-12-14 16:06:41 +13:00
misaochan
d2982845ff Refactor Utils.getSHA1 to produce SHA1 output instead of bool 2016-12-14 16:05:23 +13:00
misaochan
03f207db16 Modify testSHA1() to use InputStream instead of File 2016-12-09 17:00:14 +13:00