Commit graph

286 commits

Author SHA1 Message Date
YuviPanda
f941989c19 Revert "Make TemplateRemoveer *actually* remove templates"
This reverts commit e0c23a6038.

mark found a way that was not as agricultural
2013-04-24 00:45:23 +05:30
Brion Vibber
79f6185f8c Add DB updaters for Category table 2013-04-23 10:27:46 -07:00
Brion Vibber
8b7095042d Work in progress: hook up content provider for recent cats 2013-04-23 08:31:01 -07:00
YuviPanda
e0c23a6038 Make TemplateRemoveer *actually* remove templates
Strangely, the \}\} regex seems to match the | character. Weird,
confusing and scary. This *might* be an ICU Regex vs Java native
Regex thing, or it might be something more subtle / obvious that
I am missing.

However since we're simply doing character matches, doing a simple
equals should suffice for this.

Goddamn wikitext.

Bug: 47380
2013-04-23 20:38:36 +05:30
Brion Vibber
8d67c5c2d5 Initial stab at pulling cats from content provider
We don't put anything in the provider yet though. :)
2013-04-23 07:31:46 -07:00
Brion Vibber
d894268056 Drop Parcelable interface, not needed 2013-04-23 07:00:17 -07:00
Brion Vibber
fd1de3cdd8 Stub adapter for the recent cats view... 2013-04-22 16:51:29 -07:00
Brion Vibber
0e23531f59 Tweak column order...? 2013-04-22 16:29:28 -07:00
Brion Vibber
58e48399d5 Work in progress: Category class and content provider
for recently-used categories list
2013-04-22 16:14:28 -07:00
YuviPanda
f9961381ce Trigger Modifications Sync right after all uploads are done
Bug: 46935
2013-04-11 00:21:50 +05:30
YuviPanda
91e0f8cff2 Make template remover more robust
marktraceur pointed out that my previous code will fail at
{{echo|{}} which is, unsurprisingly, valid wikitext
2013-04-11 00:19:09 +05:30
YuviPanda
125275548f Remove results of {{subst:unc}} when adding categories
Also contains a braindead Template remover. Doesn't even handle
identified edge cases, much less unidentified ones.
2013-04-10 19:11:28 +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
32983db9c2 Track changes to the preference for tracking changes
Yo Dawg, etc, etc.
2013-04-07 18:48:34 +05:30
YuviPanda
1b89d96943 Add a settings screen, with a preference to disable tracking 2013-04-07 18:11:07 +05:30
YuviPanda
3ba54daf4f Turn EventLogging *on* by default 2013-04-07 17:03:13 +05:30
YuviPanda
06a0fb9028 Add a boolean pref to disable EventLogging based tracking 2013-04-07 16:47:06 +05:30
YuviPanda
72b351b21a Minor case fix to be consistent across template parameters 2013-04-07 16:47:05 +05:30
YuviPanda
53db4a13a0 EventLogging network failure is silently ignored
EventLogging failing should never cause a hard crash, so ignore for now.

Bug: 46847
2013-04-07 16:47:05 +05:30
YuviPanda
e6305dffc3 Automatiaclly turn on the Modifications Content provider
Is a hack, needs a proper fix at some time
2013-04-03 00:31:05 +05:30
YuviPanda
53ffac92b2 Fix ghost keyboard issue with multiple uploads 2013-04-03 00:11:02 +05:30
YuviPanda
f7ec318179 Remove RuntimExceptions on transient errors 2013-04-02 21:21:50 +05:30
YuviPanda
8bed027e4e Fix crash on 2.3 during categorization 2013-04-02 20:51:27 +05:30
YuviPanda
1d1e7f9245 Add Categorization EventLogging 2013-04-02 04:02:26 +05:30
YuviPanda
5e45cb2bd4 Disable the multi upload photos view while adding categories
Was causing unneccessary interaction and state corruption
2013-04-02 02:49:14 +05:30
YuviPanda
da6e035878 Add post-upload categorization to Multiple Upload
Some of the related changes snuck in last commit too
2013-03-31 09:17:21 +05:30
YuviPanda
87c09c344b Move Multiple upload menu handling code to Fragment 2013-03-31 08:41:58 +05:30
YuviPanda
02658588df Dismiss keyboard between title & categorization fragment
The keyboard stays on, but the keys go to the wrong window
2013-03-31 03:20:11 +05:30
YuviPanda
e936add26c Add edit summaries to category edits 2013-03-31 02:59:23 +05:30
valeriej
5cbd328977 Remove reference to PostUploadActivity 2013-03-29 22:44:09 -05:00
YuviPanda
55fa11f6d0 Set title of categorization activity appropriately 2013-03-30 05:37:02 +05:30
YuviPanda
b16d89fb49 Fix intermittent apparently random crash
I have no idea why this crashed. Adding a guard just in case
2013-03-30 05:33:52 +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
ff1a5aed1c Do not show all categories when filter is empty 2013-03-30 04:27:14 +05:30
YuviPanda
de5968d75e Add proper categorization view on post upload 2013-03-30 03:52:56 +05:30
YuviPanda
36f90b51e1 Prevent ModificationsSyncAdapter from looping forever 2013-03-29 15:37:46 +05:30
YuviPanda
7f720d1f3e Handle menu enabling / disabling appropriately 2013-03-28 04:24:14 +05:30
YuviPanda
8a7966687a Create a separate api object for modifications sync
This prevents the same HTTPClient being re-used across different
threads, causing problems

Long-term fix needed, however
2013-03-28 04:14:55 +05:30
YuviPanda
1816f792f8 Separate ShareView into an activity + a fragment 2013-03-28 04:13:50 +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
03277af6cc Add EventLogging for Share attempts 2013-03-26 23:40:29 +05:30
YuviPanda
3bf1e3b913 Fix UploadService to have appropriately instantiable constructors 2013-03-22 02:10:28 +05:30
YuviPanda
67e3b645cb Do not hardcode service name in HandlerService 2013-03-21 23:47:14 +05:30
YuviPanda
cad50fb4c6 Set user name properly for multiple uploads! 2013-03-21 21:16:55 +05:30
YuviPanda
c5ac1651aa Cleanup Imports 2013-03-21 15:47:32 +05:30
YuviPanda
da2b77e4b0 Enure that db migrations are done properly 2013-03-21 00:52:04 +05:30
YuviPanda
408bb5bb70 Add isMultiple tracking parameter 2013-03-21 00:35:47 +05:30