Commit graph

495 commits

Author SHA1 Message Date
YuviPanda
154411b15b Add subtle way to show people where uploads are going to
Says 'testwiki' or 'commonswiki' at the bottom of About

Change-Id: I757bb5820985e950476e1c9b4d274e35dfcc7b96
GitHub: https://github.com/wikimedia/apps-android-commons/pull/5
2013-06-12 23:34:11 +00:00
YuviPanda
941a2ac194 Do not batch responses from image loader threads
Don't wait to batch image loads, just send 'em back as fast as
possible

Change-Id: I4a97d938c38157d4b534580a037fa950c89b1de9
GitHub: https://github.com/wikimedia/apps-android-commons/pull/4
2013-06-12 22:59:55 +00:00
YuviPanda
19b389af96 Clean out some excess logging
Change-Id: I3207086bae63f077c5808fba10e9fec9931ab4f1
GitHub: https://github.com/wikimedia/apps-android-commons/pull/3
2013-06-12 21:40:25 +00:00
YuviPanda
296fad4bf8 Upgrade Maven Android plugin to 3.6.0
Makes it work with newer version of Android SDK

Change-Id: Id84e91720f2a08f6529334ca111dc197bc61adc1
GitHub: https://github.com/wikimedia/apps-android-commons/pull/2
2013-06-12 21:21:56 +00:00
YuviPanda
57888260ec Volley images
Add support for using Volley to load remote images instead of UIL

1. Gives us Caching
2. Load images at full resolution, rather than hardcode them. This is done by trying to fetch an image at highest width possible for the particular view. If it 500s, we assume that the image is smaller than the requested width and just request the full size image
3. Created a MediaWikiImageView, to which you can pass a Media object and it will display it. Takes care of sizing, etc. Optionally you can also specify a view to use as the 'loading' view.

TODO:
Loading from content:// URIs still use UIL. Need to write a Volley HTTP Stack that can fake responses for content:// URIs.

GitHub: https://github.com/wikimedia/apps-android-commons/pull/1
Change-Id: Ia21a7b19fefa552d5a0b013085d0f5f1f80dc5ff
2013-06-12 20:44:57 +00:00
Brion Vibber
a28fc9a6ff Work around compilation failure with % encoding in strings 2013-06-10 14:06:31 -07:00
Siebrand Mazeland
e11c1f2a73 Localisation updates from http://translatewiki.net. 2013-06-10 08:45:09 +00:00
Brion Vibber
d9adba7237 Merge pull request #32 from brion/linkfix
Fix localizable formatted strings in About screen, part 1.
2013-05-26 03:55:01 -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
0b00a9f54e Merge pull request #28 from brion/killbeta
Kill beta labeling; include icon assets in scratch
2013-05-26 02:10:09 -07:00
Brion Vibber
830545af9b Merge pull request #31 from brion/upload-fail-fix
Fix for crash report if network down when upload starts
2013-05-24 03:12:41 -07:00
Brion Vibber
c1191acd88 Fix for crash report if network down when upload starts
Let the existing error handling detect the IOExceptions from
the filename uniqueness check... this lets us fail gracefully.
2013-05-24 12:11:07 +02:00
Brion Vibber
e6fd988d71 Merge pull request #30 from brion/upfix
Fix for actionbar 'up' fix when rotating
2013-05-24 03:02:21 -07:00
Brion Vibber
c7f8186eda Fix for actionbar 'up' fix when rotating
We seem to lose the mediaDetails fragment when we change state. Noooooo!
2013-05-24 11:57:04 +02:00
Brion Vibber
8589aaab55 Merge pull request #29 from brion/i18n-fix
i18nize 'Download' menu item
2013-05-21 15:50:12 -07:00
Brion Vibber
f24e013db3 i18nize 'Download' menu item 2013-05-21 15:43:51 -07:00
Brion Vibber
9fbc5a287c Bump version to 1.0alpha1 2013-05-21 14:18:24 -07:00
Brion Vibber
811a23c17f Use non-beta icons, add icon assets under scratch 2013-05-21 14:13:03 -07:00
Brion Vibber
2219717857 Remove unused extra icon 2013-05-21 14:03:02 -07:00
Brion Vibber
af18299190 Merge pull request #26 from brion/cleanup1
s/getSherlockActivity/getActivity/ in recent code
2013-05-21 12:42:17 -07:00
Brion Vibber
394b82dcec Merge pull request #27 from brion/rtl
Initial RTL layout flipping support - plus icon fix for 'send' on 2.3
2013-05-21 12:42:03 -07:00
Brion Vibber
d8299d4ddf RTL: use start/end properties as well as left/right 2013-05-21 09:59:08 -07:00
Brion Vibber
6118e0d330 Make Android Studio happy with mvn->iml project updates :P 2013-05-21 09:40:13 -07:00
Brion Vibber
a5017bbd58 LTR and RTL versions of standard 'send now' action bar icon 2013-05-21 09:31:43 -07:00
Brion Vibber
142ee8f815 Update build target to rev 17 (needed for RTL flipping) 2013-05-21 09:22:27 -07:00
Brion Vibber
520eb5474c s/getSherlockActivity/getActivity/ in recent code
Where we don't specifically need action-bar or fragment-related stuff,
it's cleaner to use regular getActivity(). If/when the action bar shows
up in the general support libraries that'll be easier to update.
2013-05-21 08:37:52 -07:00
Brion Vibber
95ebe86be5 add RTL support to manifest
Should enable layout mirroring for RTL languages on Android 4.2.
http://android-developers.blogspot.com/2013/03/native-rtl-support-in-android-42.html
2013-05-21 07:21:55 -07:00
Brion Vibber
75f8370d99 Merge pull request #25 from brion/icon-fix
Delete bogus unused 'upload' icons
2013-05-20 14:17:29 -07:00
Brion Vibber
85428d28b0 Delete bogus unused 'upload' icons
Accidentally added these while adding the 'download' icons.
They are dupes of the download icons, not upload icons. :P
2013-05-20 14:16:41 -07:00
Brion Vibber
a931dd607a Merge pull request #24 from brion/login-done
Log in on "Done" or enter press in password field
2013-05-20 14:08:46 -07:00
Brion Vibber
f72b3e044b Log in on "Done" or enter press in password field 2013-05-20 14:06:44 -07:00
Brion Vibber
973ee82097 Merge pull request #23 from brion/gingercolor
Fix title text color in detail view on Gingerbread
2013-05-20 11:36:07 -07:00
Brion Vibber
ca92bd6a90 Fix title text color in detail view on Gingerbread
Text color wasn't being set on the EditText, defaulted to black on Gingerbread.
Set to white to match the list.
2013-05-20 11:34:56 -07:00
Brion Vibber
31cc991c63 Merge pull request #22 from brion/spell
Disable spell suggestions in non-editable title view on detail page
2013-05-20 11:28:14 -07:00
Brion Vibber
c0a405c3c7 Disable spell suggestions in non-editable title view on detail page 2013-05-20 11:26:42 -07:00
Brion Vibber
f7d89f6247 Merge pull request #21 from brion/jpg
Use .jpg instead of .jpeg
2013-05-20 10:49:04 -07:00
Brion Vibber
7ab03c5aed Use .jpg instead of .jpeg 2013-05-20 10:48:18 -07:00
Siebrand Mazeland
772a5280f9 Localisation updates from http://translatewiki.net. 2013-05-20 09:36:33 +00:00
Brion Vibber
bc077f2c9f Add some code & storage info to readme 2013-05-19 10:56:32 -07:00
Brion Vibber
0f495b8e77 Merge pull request #20 from brion/license-summary
License summary
2013-05-17 13:41:05 -07:00
Brion Vibber
5b761ea132 Open license page in browser when tapping on license line 2013-05-17 13:39:43 -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
26eedb1c38 Merge pull request #19 from brion/menus
Move all menu items into main action bar or overflow menu
2013-05-16 14:21:07 -07:00
Brion Vibber
2cb1c3afc8 Move all menu items into main action bar or overflow menu
We were using a split action bar, putting 2-3 buttons at the bottom
of the screen. This unfortunately makes it easy to hit the home/
back/etc buttons on the phone when going for the bottom area, plus
I just don't like it. ;) Taking it out for now.
2013-05-16 14:18:54 -07:00
Brion Vibber
8ee8c2796f Merge pull request #18 from brion/download-photo
"Download" menu button on image detail page.
2013-05-16 13:19:21 -07:00
Brion Vibber
5be2d939ea "Download" menu button on image detail page.
Saves original file into the SD card "Downloads" directory via
Android's DownloadManager service.

On Gingerbread the notification vanishes after downloda, but we
force the gallery to reindex the downloads area so you can still
manually bump over to Gallery.

On ICS/JB the notification hangs around and can be used to open
the saved file directly.

Note that on Gingerbread we have to download over HTTP because
DownloadManager didn't support HTTPS.

Included copy of stock 'upload' icon, flipped it for 'download'.
2013-05-16 13:13:34 -07:00
Brion Vibber
ef77d5ff49 Merge pull request #17 from brion/namecheck
Name uniqueness check & extension fix
2013-05-14 16:22:29 -07:00
Brion Vibber
de34019e60 Name uniqueness checking
Follows sequence 'Foo.jpeg', 'Foo 2.jpeg', 'Foo 3.jpeg' etc until one is
found that doesn't exist, then we send up the upload. This avoids most
typical conflicts scenarios.

Still can produce a conflict if you start uploads near-simultaneously,
but this is better than none.
2013-05-14 16:21:28 -07:00
Brion Vibber
4af8e15fb7 Fix regression in file extension
We were appending a file extension and then throwing it away since some refactoring. Oops!
2013-05-14 16:21:27 -07:00
Brion Vibber
c3600f6eed update license in CREDITS file 2013-05-14 10:27:56 -07:00