Commit graph

63 commits

Author SHA1 Message Date
YuviPanda
064dbb0df6 Merge branch 'campaigns'
Conflicts:
	commons/res/values/strings.xml
	commons/src/main/java/org/wikimedia/commons/Media.java

Change-Id: Ib8c74cbf88630f11b3fbfee903800e7acf7b2fd4
2013-10-15 22:54:03 +05:30
Brion Vibber
4c45c88ade Extract and show license key
List of available licenses is pre-extracted from UploadWizard
MediaWiki extension. This should eventually be switched to use
some live query to the site configuration.

The license display is more or less localizable, for known templates.
Unrecognized templates specified as parameters to {{self}} will be
recognized (unlocalized) but others may not be.

Change-Id: I9df5fe807798a191a3bb0a45464760c75f19e366
2013-10-09 11:17:16 -07:00
YuviPanda
2503f54731 Use a SyncProvider to sync all Campaigns
The SyncService constantly deletes and re-creates the campaigns
in the background to make sure they are up to date

FIXME: Handle deleted or renamed campaigns

Change-Id: I5d03995ada219481ea38887a8ea6d59fa11d2ac8
2013-09-17 11:44:30 -07:00
Brion Vibber
4df8ec8fa9 Media detail page redone as a "slide-up" panel.
Loads and displays default or English description, and categories.
No caching of this info yet.

Scrollable pane is a ListView, with the title/desc/category label
in a 'header' view along with a spacer view. The height of the spacer
is set dynamically to the height of the total fragment minus 48dp,
giving room for an initially-visible title section and a little
spillover so you can see it's scrollable.

Clicking on a category in the cats list opens the category page in
an external web browser. In the future this should open the category
within the app, but we don't have a per-cat view yet.

Description and category list are not yet editable.

GitHub: https://github.com/wikimedia/apps-android-commons/pull/41
Change-Id: I46d0a77481dbe64a268a72f3efe49ae72168541f
2013-08-27 03:51:14 +05:30
YuviPanda
c5042b0066 Explicitly mention version of CC licenses
Change-Id: Iccf82225f9f50b427380f790a2fd0fc25ca024ca
2013-08-21 01:04:42 +05:30
YuviPanda
81e79cf096 Make thumbnails load faster by loading smaller Thumbnails
GitHub: https://github.com/wikimedia/apps-android-commons/pull/25
Change-Id: I0af540a1d84348a7a3e67c6037cd509b88b84b21
2013-07-10 20:44:59 +00:00
Brion Vibber
6c97d3e01b Bug 48995: Add acceptable use 'tutorial' to app
Initial port of the acceptable use tutorial from iOS app. This version uses static images and is not yet animated. Indicator circles on the pager are done using Apache-licensed https://github.com/JakeWharton/Android-ViewPagerIndicator -- imported via maven. Currently the tutorial launches when we reach the login screen (as when first installing the app or creating a new account from system settings). You can either 'back' out of it or page through and hit the 'yes' button.

GitHub: https://github.com/wikimedia/apps-android-commons/pull/20
Change-Id: Ibc444102e28a55bfa7bbae601ff0c56268a0c7dd
2013-06-24 14:24:38 -07:00
YuviPanda
55525bc100 Allow users to select preferred license for their contributions
Needs some UI love on both selection & intimation, but works otherwise

People can pick from CC BY-SA, CC BY, or CC0. The commons templates
are set using {[self}}, which I think is good enough.

GitHub: https://github.com/wikimedia/apps-android-commons/pull/14
Change-Id: Iffca6f75c63de6fbe61c4dc41b93dd5f692065a5
2013-06-18 08:43:17 -07:00
Brion Vibber
e24ce770f1 Fix localizable formatted strings in About screen, part 1.
We can't use formatted strings directly because it breaks with
our localization tools. Grab an HTML string and turn it into
a formatted string.

Localized versions will have to be updated still, but that should
happen automatically at TWN.
2013-05-26 12:52:13 +02:00
Brion Vibber
f24e013db3 i18nize 'Download' menu item 2013-05-21 15:43:51 -07:00
Brion Vibber
eac7fdb575 Briefly mention CC-BY-SA on the upload info page! 2013-05-17 13:25:15 -07:00
Brion Vibber
d7ea80437a Add menu items for 'retry' and 'abort' on detail view 2013-05-09 15:18:18 -07:00
Brion Vibber
5b8990be0e Localize messages for first sync / no images 2013-05-06 11:53:31 -07:00
YuviPanda
e1d76e302d Mention changed LICENSE in about page 2013-04-27 00:36:00 +05:30
Brion Vibber
a9b431cde0 Add XML/manifest bits for internal category content provider 2013-04-23 06:57:09 -07:00
YuviPanda
6a82b3e8e4 Make share target title to be app name 2013-04-11 02:40:38 +05:30
YuviPanda
d76541ceec Add way to send feedback via email 2013-04-10 00:16:53 +05:30
YuviPanda
b62f14c7c7 Add minimal About activity 2013-04-09 22:54:14 +05:30
YuviPanda
1b89d96943 Add a settings screen, with a preference to disable tracking 2013-04-07 18:11:07 +05:30
YuviPanda
b667bcb9d5 Trim whitespace in one of the messages 2013-04-01 18:45:32 +05:30
YuviPanda
2ae198e74d Make explanatory category text work for both singular and plural
It is important that this text is localized, but since we can not
do localizations of plurals, I'm just making a copy edit
2013-03-31 09:48:50 +05:30
YuviPanda
55fa11f6d0 Set title of categorization activity appropriately 2013-03-30 05:37:02 +05:30
YuviPanda
264483838c Add descriptive text to tell people how to skip categorization 2013-03-30 05:33:48 +05:30
YuviPanda
0176995612 Show explanatory text when no categories are found for search text 2013-03-30 04:52:35 +05:30
YuviPanda
de5968d75e Add proper categorization view on post upload 2013-03-30 03:52:56 +05:30
YuviPanda
f0e9d30bfa Make title message for Share screen consistent 2013-03-27 22:25:20 +05:30
YuviPanda
8462b4bec1 Design mofifications to single share view 2013-03-27 19:34:46 +05:30
YuviPanda
780af9d07d Initial cut of Modifications syncing
Provides one naive modifier (which blindly adds categories).
Provides a sync service & a content provider. Insert appropriate
items into the  content provider and wait for the sync to happen.

Sync currently likes to 'fail early' rather than recover.

Blank post upload activity also present, simply adds random category
to the page that was uploaded. Will need appropriate UI
2013-03-27 18:12:49 +05:30
YuviPanda
f7882e916d Fix theming on Share Window to look appropriate
Bug: 46543
2013-03-26 00:44:55 +05:30
YuviPanda
2976268291 Fix styling on 2.3
Also switch to Holo Dark, which is what we wanted anyway
2013-03-20 15:11:50 +05:30
YuviPanda
519f639d21 Show file count in title for multiple uploads 2013-03-16 12:01:26 +05:30
YuviPanda
95f6559357 Minor phrasing fix 2013-03-16 02:19:51 +05:30
YuviPanda
e50f50cabc Added basic Multiple Upload support
Still needs work - needs detail view, categories & base description
2013-03-15 04:39:09 +05:30
YuviPanda
8eb4bca7e6 Add beta string to string resources
(See 'beta' branch)
2013-03-03 21:38:37 +05:30
YuviPanda
63177ec529 Minor string resource fixups 2013-03-02 04:51:07 +05:30
YuviPanda
0ecbe5c605 (Bug 45393) Replace login subtitle with just the app name 2013-02-27 07:28:38 +05:30
YuviPanda
61ed62c6b3 (Bug 45453) Make Title required in Share dialog 2013-02-27 06:21:45 +05:30
YuviPanda
d0f2c87439 Slightly less awful network failure message 2013-02-27 05:35:01 +05:30
YuviPanda
b84d00330e (Bug 45370) Improve Error messages on Login Screen 2013-02-27 05:31:33 +05:30
YuviPanda
909defefcf Do not use explicit labels for Title & Description in Share 2013-02-26 03:22:18 +05:30
YuviPanda
b017e0abc6 Slightly more accurate title for failed uploads 2013-02-23 21:53:51 +05:30
YuviPanda
b6400139ae Add 'view in browser' action to detail page 2013-02-23 16:26:33 +05:30
YuviPanda
ef0c192cd2 Add Share button to image Details page 2013-02-23 14:52:15 +05:30
YuviPanda
599be3c1bd Minor modifications to interface text 2013-02-23 03:10:07 +05:30
YuviPanda
0be55faffd Show number of contributions in activity subtitle 2013-02-22 18:32:01 +05:30
YuviPanda
0cb11284ff Add minimal detail view as a fragment 2013-02-21 21:09:04 +05:30
YuviPanda
45f11aab44 Update text for Notification to better fit available width 2013-02-19 12:32:55 +05:30
YuviPanda
0c5996c4ec Remove useless Hello World string 2013-02-18 14:00:35 +05:30
Niklas Laxström
b7603f7793 Quick sanitization on messages 2013-02-11 13:43:18 +02:00
YuviPanda
df950dec50 Added qq translation strings & removed unused strings
Using qq instead of qqq because Android doesn't support 3 letter
language codes
2013-02-07 23:24:06 +05:30