Commit graph

56 commits

Author SHA1 Message Date
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
Raj Bapat
95372f33b5
There were 2 issues combined into one: (#3643)
1. The languages were shown with the characters of the given language (i.e. Mandarin was displayed with Chinese characters).
2. The languages were not sorted
How I fixed them:
1. I changed the list that was called from AppLanguageLookUpTable from localized to cannonical.
2. I imported List and Collections and I sorted said list in lexicographical order.
2020-04-26 00:23:00 -07:00
Prince Amankwah
f0a37d3369
issue-#3606: cancel in translate goes back to about screen (#3610) 2020-03-31 01:56:59 -07:00
Madhur Gupta
d925e32d2f
Added AboutActivityTest (#3475)
* Added AboutActivityTest

* Changes made as per suggestions

* Removed File to resolve conflict

* Removed hardcoded packagename

* Changes as per suggestion

* Removed Unrelated changes

* Fixed Build Issues
2020-03-11 15:02:30 -07:00
Aastha Bist
4038519012
code-quality: remove CDATA and <u> tags from string.xml (#3310)
Remove CDATA and <u> tags from string resources. Instead use setUnderlinedText() method added in Utils to create underlined string resources.
2020-02-17 00:34:46 -07:00
Madhur Gupta
5d827e44ae Moved hardcoded URLs to a constant file Fixed #2850 (#2851)
* Moved hardcoded URLs to build.grade Fixed #2850

* Moved Urls to a constant file

* Fixed Typo
2019-05-10 15:09:32 +03:00
Vivek Maskara
dcbf076965
Update master with backend overhaul branch (#2829)
* Beginnings of integration with Wikipedia client library. (#2642)

* Remove remaining unnecessary API version check.

* Roll up sleeves.

* Add and integrate the beginnings of app adapter.

* Remove vestigial event logging logic.

Event logging is no longer used in this app.

* Beginnings: remove StringUtils and associated redundancies.

* Remove redundant capitalize() method.

* Remove redundant urlEncode() method.

* Remove redundant (and incomplete) language lists.

* Remove redundant usages of SimpleDateFormat.

* Remove redundant json type adapter.

* Remove redundant MW error model classes.

* Rip out redundant MW model classes.

* Pass SessionManager into AppAdapter instead of injecting.

* Wire up more of the AppAdapter.

* Remove redundant Gson initialization and type adapters.

* Rip out PageTitle.

This was being used in some slightly incorrect/unexpected ways.

* Don't need static WikiSite.

* Bump data client library version

* Bump library version and fix build

* Fix tests

* Fix build

* Fix media of the day

* With fixes in recently modified APIs
2019-04-02 08:35:22 +05:30
Vivek Maskara
de9611821b Fix version number for alpha builds (#2325) 2019-01-24 23:32:16 +05:30
Adam Jones
f04503bb3e Lint issues (#2114)
* Dangling Javadoc comments

* Replace for loop with foreach

* Explicit type can be replaced with <>

* Anonymous type can be replaced with lambda

* Lambda can be replaced with method reference

* Remove redundant methods

* Use capital L for long literals

* Remove unnecessary StringBuilder
2018-12-21 13:09:04 +02:00
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
Siddharth Vaish
911873379b Alignment of language selection dialog in About>Translate #1713 (#1776) 2018-08-02 19:14:56 +10:00
dlsrks1021
e8b2dd7163 remove unused imports (#1606) 2018-06-21 07:28:27 +09:00
Ujjwal Agrawal
693c37f2ec Updated share feature (#1474) 2018-05-04 12:56:13 +03:00
Mansi Agarwal
120130bfc7 Share feature (#1338)
* added share app feature in About

* added share app feature in About

* a small fix
2018-03-29 00:52:53 +05:30
Maanu449
1e80f68136 used CDATA 2018-03-27 18:10:39 +05:30
tanvidadu
1b1568d15e Added the functionality 2018-03-17 09:53:17 +05:30
tanvidadu
2e064c370a Alert Dialoge Implemented 2018-03-17 09:53:17 +05:30
tanvidadu
7e081799ed Languages token hashmap added 2018-03-17 09:52:27 +05:30
tanvidadu
a6a30e1e77 Fixed Merge conflict 2018-03-17 09:52:27 +05:30
tanvidadu
757a198c99 translate url added 2018-03-17 09:51:24 +05:30
Vivek Maskara
4219023740
Merge branch 'master' into privacyPolicy 2018-03-12 00:18:04 +05:30
Ujjwal Agrawal
ede8c76d45 Faqs added in About Activity (#1256)
* Faqs added in About Activity

* Added CDATA in strings

* removed cdata, added SpannableString
2018-03-11 13:28:26 +05:30
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
Hassan
8addd10ef8
update PR quality 2018-02-28 13:07:50 -05:00
Hassan
e49f13ff74
Merge branch 'master' into master 2018-02-28 08:44:03 -06:00
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
hismaeel
f9b99f9280 issue #1156 fix 2018-02-20 21:38:22 -05:00
Hassan
b03e67dcd6
Merge branch 'master' into master 2018-02-17 12:07:58 -06:00
hismaeel
5860825a09 Issue #1156 2018-02-17 11:02:35 -05:00
Manuel Lorenzo
304bf51f5f Fixing some lint issues for #171 2018-02-07 11:32:24 +01:00
Shradheya Thakre
9985e87b8a Used @OnClick Annotation 2018-01-21 15:48:54 +08:00
Shradheya Thakre
ca43dbcef1 Refactored function names 2018-01-21 15:36:36 +08:00
Shradheya Thakre
64271e6066 On click Methods added 2018-01-20 14:13:34 +08:00
prajgov
3d6c6e0301 added JavaDoc comments 2017-12-19 19:11:39 +05:30
Paul Hawke
02b5b9b680 Merge branch 'master' into dependency-injection 2017-11-24 22:30:08 -06:00
Ram Gudivada
3c9b325e58 Changed activity creation logic
- for home activity it will reuse existing activity from back stack and
  also clears all current activities
- for nearby, about and settings, it will use the existing activity from
  back stack
2017-11-20 21:37:10 -08:00
Michiyo Wellington-Oguri
10637f4bf2 Use string substitution to avoid translating trademarked text 2017-07-16 14:28:23 -07:00
maskara
a6bbc8a33b With NavigationBaseActivity implemented 2017-05-16 11:58:54 +02:00
maskara
09cd596ff6 Integrated navigation drawer in the contributions activity 2017-05-16 11:57:07 +02:00
Dinu Kumarasiri
8bf59d832f Tidy about screen 2017-05-15 12:21:32 +02:00
veyndan
ce1e293d87 Define a custom TextView that displays HTML 2017-04-14 15:02:33 +01:00
veyndan
b9eafa66b9 Add ActionBar to About screen 2017-04-13 17:40:10 +01:00
veyndan
0e3bd3c74a Use generated version name from BuildConfig 2017-03-24 03:13:44 +00:00
Josephine Lim
b64c77021b Merge pull request #451 from maskaravivek/credits
Add credits in about page
2017-03-21 22:11:44 +10:00
veyndan
7d4dc12f53 Rename BaseAppCompatActivity to BaseActivity 2017-03-20 21:14:56 +00:00
veyndan
8cc51c4dd9 Extend from AppCompatActivity instead of Activity 2017-03-20 21:14:22 +00:00
maskara
6b1484efe6 Add credits in about page 2017-03-21 01:22:04 +05:30