Commit graph

424 commits

Author SHA1 Message Date
misaochan
87b23b8494 Final changes
Re-enabled uploading code (previously disabled for debugging purposes)
2015-12-18 15:43:54 +13:00
misaochan
8f724e461e Altered coord string to format required by API 2015-12-18 15:33:25 +13:00
misaochan
875e1556f7 More double-related fixes 2015-12-18 15:25:16 +13:00
misaochan
3ffcb8fd57 Converted Floats and Doubles to double where possible 2015-12-18 15:21:00 +13:00
misaochan
5a4251fe55 Fixed minor issues 2015-12-18 14:53:51 +13:00
misaochan
7804546ae3 Added decimal coord conversion 2015-12-18 13:39:06 +13:00
misaochan
131b9815af Minor fixes 2 2015-12-17 19:33:57 +13:00
misaochan
204115de44 Minor fixes 2015-12-17 19:10:05 +13:00
misaochan
966ff386cd Fixed refactor problem
ImageProcessing class should work now.

TODO: Add conversion method
2015-12-17 17:35:24 +13:00
misaochan
e74ead1655 Attempt at tidying code into a new class
getContentResolver() method does not work
2015-12-16 18:18:45 +13:00
misaochan
c5fd006dd5 Successfully displayed latitude of image
TODO: Tidy up code and put in coordinate conversion method
2015-12-16 17:50:09 +13:00
misaochan
ba5fb3bb55 Attempt at implementing exifInterface
Modified ShareActivity to try and implement exifInterface on the image
file.
2015-12-16 17:31:52 +13:00
misaochan
eed0f49ce8 Removed upload capability for easier debugging
App doesn't actually upload files, so can submit same file over and
over. Needed for debugging. Will restore upload functionality prior to
release
2015-12-15 20:01:10 +13:00
misaochan
99b986537f Attempt at fixing error in logcat
E/ImageLoader(3260): Permission Denial: opening provider
com.android.providers.media.MediaDocumentsProvider from
ProcessRecord{19b604c1 3260:fr.free.nrw.commons/u0a53} (pid=3260,
uid=10053) requires android.permission.MANAGE_DOCUMENTS or
android.permission.MANAGE_DOCUMENTS
2015-12-15 17:16:57 +13:00
misaochan
0e9737426d Tidied up ShareActivity.java
Var declarations at top, constructor and other methods below
2015-11-24 19:05:15 +13:00
misaochan
c7ccd514ad Removed override
@Override not allowed when implementing interface method
2015-11-13 02:18:10 +13:00
misaochan
91763f62dd Removed residual Campaigns code
Not sure why some got left behind. Didn't throw any errors until today.
2015-11-06 16:15:30 +13:00
misaochan
8ce73d0a48 Rearranging ContributionsActivity code
Rearranging with variable declarations on top and methods below to make
it clearer (previous code has variable declarations in between methods)
2015-11-04 19:25:53 +13:00
misaochan
d0e9b8ae9a Modified UploadController 2015-10-29 21:50:29 +13:00
misaochan
a519b82761 Modified ShareActivity 2015-10-29 21:49:27 +13:00
misaochan
7ad697bf98 Modified DBOpenHelper 2015-10-29 21:48:42 +13:00
misaochan
29e2621a6d Modified ContributionsListFragmen 2015-10-29 21:48:11 +13:00
misaochan
cfdd4b2752 Modified ContributionController 2015-10-29 21:46:49 +13:00
misaochan
fff3cf05a9 Removed campaigns folder and modified ContributionsActivity 2015-10-29 21:44:40 +13:00
misaochan
4876501d50 Resolves merge conflict 2015-10-28 15:52:09 +13:00
misaochan
3972ab9fd3 Revert "Removed dead code behind Campaigns feature"
This reverts commit c64a64c905.

Conflicts:

	commons/src/main/java/fr/free/nrw/commons/contributions/ContributionsListAdapter.java

Changed version number

In preparation for uploading to Google Play
2015-10-28 15:00:44 +13:00
misaochan
6225e04f9a Fixed extra semicolon 2015-10-21 19:58:39 +13:00
misaochan
c64a64c905 Removed dead code behind Campaigns feature
- Removed entire Campaigns folder and associated classes
- Removed associated code in other classes (mostly that test for
campaign == null). I am assuming we want  to keep the behaviour where
campaign == null (ie campaigns are disabled) and discard the behaviour
where campaign != null
- Refactored code to fix spacing
2015-10-21 19:29:08 +13:00
misaochan
04ee167c64 Added "sign up" button
Fixes #6
2015-10-20 23:33:58 +13:00
misaochan
ad88bb3929 Changed directory to fr/free/nrw/commons
Fixes issue #14
2015-10-15 18:41:19 +13:00
Josephine Lim
23c73ab45a Removed Prefs.TRACKING_ENABLED condition in SettingsActivity.java 2015-10-04 23:58:08 +13:00
Josephine Lim
234c7ccd48 Removed EVENT_EVENTLOGGING_CHANGE Object in CommonsApplication 2015-10-04 23:56:57 +13:00
Tobias Preuss
a297dc39af Avoid indirection and redundant method calls. 2015-09-18 14:34:52 +02:00
Nicolas Raoul
5ceb9aba69 Fixed namespace typo 2015-09-08 16:37:39 +09:00
Nicolas Raoul
7786157913 Real API URL and other parameters, reverse-engineered from https://releases.wikimedia.org/mobile/android/commons/wikimedia-commons-1.0beta13.apk 2015-09-08 12:32:45 +09:00
Nicolas Raoul
97a57be47a Modified namespace so that app can be published on Google Play 2015-09-08 10:08:34 +09:00
Brion Vibber
47af8f6b0f fix intermittent crash in rotate-on-detail-view crash fix
Was sometimes crashing due to trying to remove observer too late
after detecting the newly loaded adapter. (Race condition?)

Change-Id: Ib62d78a2b7d863606070bf6d72ec37b9791bf243
2013-10-23 14:06:40 -07:00
YuviPanda
1824176c81 Load images from local disk if possible
Change-Id: I21c477131d714dde6029db7193ab1063809581b5
2013-10-24 01:27:18 +05:30
Brion Vibber
fed215a37a Crash fix for rotate in media detail view
We were crashing when rotating in the detail view, because the detail
view fragment had assumed that its parent activity had already loaded
up its cursor and such before it got created -- an assumption which
fails dramatically when rotating, or switching away and back after
we got paged out of memory.

Check whether we got an object, and if not ask the parent to ping us
when it's done loading.

Also tweaked one of the older delay hacks to avoid a second crash
related to the pager's adapter.

Change-Id: Ib91c0fef0d8ffd0e6b8e0e4874f3ee9be3e9cf34
2013-10-23 11:42:33 -07:00
YuviPanda
0fb60f04c3 Fix crash when looking at images in campaign view
Change-Id: I9254277065a89effa7c9835cc20451043561d16b
2013-10-23 20:07:19 +05:30
YuviPanda
da8db5a2ca Add refresh button only for Campaigns
Temp. hack to let people see new images when they come through

Change-Id: I986bc274ccebd53fef75dbaeffcdff891a4f77bf
2013-10-23 20:07:07 +05:30
YuviPanda
ad0e299f33 Show campaign title if we are displaying a campaign
Change-Id: I3982749fd4f8ce08a2bbf704db9c2f694456d5d5
2013-10-23 05:56:21 +05:30
Yuvipanda
e442f73374 Merge "UI matching in detail view to iOS version" 2013-10-22 20:47:57 +00:00
YuviPanda
5ad8171d51 Let people upload to the campaign they are looking at
FIXME: Show progress of upload as it happens, or at least
direct them to a place where that can happen

Change-Id: I7695fcb9de7d6c2ffdfa2bc60e116a20a6298e31
2013-10-21 22:32:25 +00:00
YuviPanda
884709b470 Switch to using ThreadedPoolConnectionManager
Is probably the cause of the IllegalStateExceptions.

Change-Id: I6160dcd42d77f49396fdb934643b5a8e00f6779f
2013-10-21 22:24:52 +00:00
Brion Vibber
e46a1fac88 UI matching in detail view to iOS version
* ListView -> LinearLayout for categories
* Add labels for fields
* Cool transparent rectangles!
* Padding adjustments...
* Darken image when scrolling detail panel up
* Placeholders for empty desc, license fields

Change-Id: I0e4c4348e741af3560d455ee4b793c2743626fbf
2013-10-21 14:47:26 -07:00
YuviPanda
f1ebb5f04b Provide usable menu actions for Media object pagination too
Change-Id: Iae25f59fb713ddcf615b47959f141a595bbbed1d
2013-10-18 18:13:53 +00:00
Brion VIBBER
786e1eb580 Merge "Merge branch 'campaigns'" 2013-10-18 18:07:21 +00:00
YuviPanda
1bc0b781d1 Fix which menu items get displayed at which state
Only show actions that are applicable to each state.
Also clarify that 'abort' actually only 'deleted' failed
uploads. We have no way to abort an in-progress upload yet

Change-Id: I2c18273e603e3ca6b1e03f83b7404e96b6d8bad0
2013-10-16 02:13:54 +05:30
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