195 Commits

Author SHA1 Message Date
Baligh Uddin
25cb436bbc Import translations. DO NOT MERGE
Change-Id: Ibb49ad5c4d9a81d64086f05d71e0ff769af3177e
Auto-generated-cl: translation import
2014-05-21 13:57:22 -07:00
Baligh Uddin
bd41f66b90 Import translations. DO NOT MERGE
Change-Id: Ia514ffa26785292a7659a5e3950cc3125d50736e
Auto-generated-cl: translation import
2014-04-22 17:04:17 -07:00
Kenny Root
62d509d24f am 37c69fdd: Merge "Use java.util.Objects instead on internal API"
* commit '37c69fdd826f3973966430adc1abfbefc19bc16e':
  Use java.util.Objects instead on internal API
2013-12-13 14:17:29 -08:00
Kenny Root
e6585b32ea Use java.util.Objects instead on internal API
Not needed since java.util.Objects implements all the needed
functionality.

Change-Id: Icd31d49a9801d1705427f028e9ac927d58e7d34c
2013-12-13 13:40:30 -08:00
Jeff Sharkey
37ba54ac13 am eb4dc749: am 6d0d4b5b: Merge "Mask OOBE when filtering recent documents." into klp-dev
* commit 'eb4dc749de7f6ee45cae070db960890643e94aff':
  Mask OOBE when filtering recent documents.
2013-11-19 00:13:26 -08:00
Jeff Sharkey
eb4dc749de am 6d0d4b5b: Merge "Mask OOBE when filtering recent documents." into klp-dev
* commit '6d0d4b5b5a66ea348c2cdd89a89d4ab7f0483829':
  Mask OOBE when filtering recent documents.
2013-11-19 00:11:15 -08:00
Jeff Sharkey
e2515ac296 Mask OOBE when filtering recent documents.
There is a data ownership issue related to recent documents Cursors,
and the loader and UI threads can end up traversing the same Cursor
at runtime.  This change masks OOBE crashes caused by this race until
we have time to fix cleanly.

Bug: 11736668
Change-Id: I2039a5edcf341fcaedacc2f08bde96fc5a271782
2013-11-18 17:41:56 -08:00
Baligh Uddin
56ce7d8591 Import translations. DO NOT MERGE
Change-Id: I51676d5c61313a165f7a1cce21e46cb1c5ebe68d
Auto-generated-cl: translation import
2013-11-04 10:09:17 -08:00
Jeff Sharkey
88c84f9718 am dd225d28: am 7fbba162: Merge "Suppress OperationCanceledException logging." into klp-dev
* commit 'dd225d28e6e7a57a9ae70c4a7f6217358e3a2052':
  Suppress OperationCanceledException logging.
2013-10-29 13:52:54 -07:00
Jeff Sharkey
66d079bf25 am f7eb3398: am 19949b9d: Merge "Guard against missing document columns." into klp-dev
* commit 'f7eb3398f16f4d76d2a342cf571040360d5a6df6':
  Guard against missing document columns.
2013-10-29 11:58:21 -07:00
Jeff Sharkey
33819318f6 Suppress OperationCanceledException logging.
These exceptions are normal when an app has cancelled an outstanding
thumbnail request.

Bug: 11385378
Change-Id: I8aed5721b447cda5baf447ac7afd627aa1062863
2013-10-29 11:56:37 -07:00
Jeff Sharkey
5d321d472d Guard against missing document columns.
When filtering and sorting, guard against missing columns to avoid
crashing entire app.

Bug: 11377065
Change-Id: I04f035c918d743bcc84592f05e3ef9ad0ebfadce
2013-10-29 11:48:30 -07:00
Jeff Sharkey
e643e33736 am 99dcb2eb: am 10e509dc: Merge "Use inotify to update DocumentsUI." into klp-dev
* commit '99dcb2eb3578c3d14658b3850cb3e32608e173b1':
  Use inotify to update DocumentsUI.
2013-10-28 09:57:20 -07:00
Jeff Sharkey
de9b66fee1 am 3ac436b7: am 80f103ae: Merge "Extra to always show advanced devices." into klp-dev
* commit '3ac436b758830eb938c62d5ed91caa7808b5b63e':
  Extra to always show advanced devices.
2013-10-25 18:17:52 -07:00
Jeff Sharkey
db5ef12500 Use inotify to update DocumentsUI.
While user is actively looking at a directory, subscribe to inotify
events and notify of content changes to trigger requeries.  Reference
count the observers, since multiple cursors are regularly open during
requeries.

Fix leaking cursors on activity rotation; crazy loader ID generation
is no longer needed.

Bug: 10999396
Change-Id: Iddeb08a056fee80c93df8499874705bcd213a1e2
2013-10-25 17:51:04 -07:00
Jeff Sharkey
96c620595b Extra to always show advanced devices.
Also always lower-case extension to extract MIME type correctly,
we may want to fix in MimeUtils at some point.

Bug: 11354402
Change-Id: I77d0c06a663cd0c4320c41553ff1980b6f9a7778
2013-10-25 16:30:54 -07:00
Jeff Sharkey
a5d24638f6 am 180e484e: am be416248: Merge "Remove persisted stacks when app removed/cleared." into klp-dev
* commit '180e484ef0370ab7f796c8fa51baf6b4c1c2cbdc':
  Remove persisted stacks when app removed/cleared.
2013-10-24 15:40:15 -07:00
Jeff Sharkey
909924de9f am 8dd4c1d0: am 5ecfb557: Merge "Long-press on GET_CONTENT app shows its details." into klp-dev
* commit '8dd4c1d062bfcfd46c48e568870856787852124c':
  Long-press on GET_CONTENT app shows its details.
2013-10-24 12:35:26 -07:00
Jeff Sharkey
46106ca28e am 686fa2db: am c832ef0d: Merge "Show spinner while waiting for mutations." into klp-dev
* commit '686fa2db5b8feeb9e378aeb8e5dbac2f79ef2153':
  Show spinner while waiting for mutations.
2013-10-24 12:35:22 -07:00
Jeff Sharkey
758f97e46d Remove persisted stacks when app removed/cleared.
When an app's data is cleared, or it's uninstalled, remove any
persisted stacks.

Bug: 11355566
Change-Id: I4e5cf0ec710591ad62f1ad52c2e358616631af41
2013-10-24 11:22:20 -07:00
Jeff Sharkey
c24bbd4ce5 Long-press on GET_CONTENT app shows its details.
Matches ResolverActivity behavior.

Bug: 11319259
Change-Id: Id7f2a73b225e4cfd9bdef3b1c7cecb77d9bd2b90
2013-10-23 16:05:56 -07:00
Jeff Sharkey
04d45a0bdd Show spinner while waiting for mutations.
When mutation operations are waiting for a storage backend, show a
spinner in place of the save button.

Bug: 11333249
Change-Id: I2b620b4532ad977a2b60d4bdc5caa55f89021456
2013-10-23 15:48:05 -07:00
Jeff Sharkey
05f92b7c58 am 6599c128: am 871cb5d5: Merge "Update roots when data cleared, refresh UI." into klp-dev
* commit '6599c12843fe3c82a5a02978afeb262eeb76f3f4':
  Update roots when data cleared, refresh UI.
2013-10-23 11:13:06 -07:00
Jeff Sharkey
75b96875be am 3a27585d: am a9a6007c: Merge "Treat document thumbnails as preemptable." into klp-dev
* commit '3a27585df77997b5ea01a086b739ee6866000444':
  Treat document thumbnails as preemptable.
2013-10-23 11:13:01 -07:00
Jeff Sharkey
46de7b5024 Update roots when data cleared, refresh UI.
Data cleared usually means accounts went away, so kick off roots
refresh.  Also update any visible UI after a refresh finishes.

Bug: 10899793
Change-Id: Id68c80b5e635e358cfd75f4961ce13cd1c7c5f82
2013-10-23 09:59:06 -07:00
Jeff Sharkey
b3d42635aa Treat document thumbnails as preemptable.
When a more important request comes along, preempt all outstanding
thumbnail requests.

Bug: 11317901
Change-Id: I164fc8d804bb9c471e6da3f8127228043b3ca482
2013-10-23 09:23:13 -07:00
Craig Mautner
73b25d6ac0 am bd0a4143: am b3a08be2: Merge "Use dialog animations for dialog style." into klp-dev
* commit 'bd0a4143302834c3d1a1343e82f6d4da7888308e':
  Use dialog animations for dialog style.
2013-10-14 19:00:47 -07:00
Craig Mautner
d2d76ac6b9 Use dialog animations for dialog style.
Using activity animations on non-fullscreen activities that sit over
a wallpaper activity cause the exiting activity to show up underneath
the next activity. If the next activity happens to be a wallpaper
activity then this will be janky as the exiting activity will go from
on top of the incoming activity to on top of the wallpaper as it
animates away.

Fixes bug 11200253.

Change-Id: I7e81c50cfe7ae106da2d62f5866f43fc046181c5
2013-10-14 15:52:58 -07:00
Baligh Uddin
5ab664c159 Import translations. DO NOT MERGE
Change-Id: I4bdcff01e1271ee4a7695a9bb646cd84530f654e
Auto-generated-cl: translation import
2013-10-10 19:16:51 -07:00
Jeff Sharkey
467b30bb2b am d0da14a9: am aa841672: Merge "Support overriding calling package in Documents." into klp-dev
* commit 'd0da14a92fb63399a1d18ea50f5792bece0ec83b':
  Support overriding calling package in Documents.
2013-10-09 14:04:37 -07:00
Jeff Sharkey
530fcce7ca am 4df901a4: am 7cd3e905: Merge "Drop <meta-data> support for DocumentsProviders." into klp-dev
* commit '4df901a40c5529aee9f5ef4d3b81fdf090b3d57a':
  Drop <meta-data> support for DocumentsProviders.
2013-10-09 14:04:34 -07:00
Jeff Sharkey
15be83612c Support overriding calling package in Documents.
Calling package is only used to pick the stack to restore, not for
security purposes.  This lets other system tools (like Printing)
indicate the real caller.

Bug: 11149540
Change-Id: I155e32577eaeda7dfcb80a7d84ac3b54f281590a
2013-10-09 13:52:26 -07:00
Jeff Sharkey
d2e1e810a7 Drop <meta-data> support for DocumentsProviders.
Prebuilts have finished migrating to new <intent-filter> based
approach.  Also update isDocumentUri() to match new definition.

Bug: 11109484
Change-Id: Ib95e2c3f5a9ff70b8d5e411f68ad49d1990dae8c
2013-10-09 13:31:13 -07:00
Jeff Sharkey
e6ea79b4b1 am 63595859: am e6d419de: Merge "Grab Activity reference before leaving fragment." into klp-dev
* commit '6359585916905f17537e6db5d0cb9eb2dbac00f2':
  Grab Activity reference before leaving fragment.
2013-10-09 00:30:24 -07:00
Jeff Sharkey
78b1370308 Grab Activity reference before leaving fragment.
When creating a new directory, we spawn an AsyncTask and finish the
fragment.  This change keeps an Activity reference to report the
result back to.

Bug: 11137561
Change-Id: Icfccc5e50e8f53a50dced589e1564d64457e0ed0
2013-10-08 17:11:49 -07:00
Jeff Sharkey
9d1383c61c am 5e02e0a9: am bcc77b50: Merge "Add <intent-filter> support to <provider>." into klp-dev
* commit '5e02e0a9e1e075e3d451d929b0a67bf280c432ed':
  Add <intent-filter> support to <provider>.
2013-10-07 15:12:16 -07:00
Jeff Sharkey
f76843d520 am 73c3c65b: am 567fdd9f: Merge "When launched into empty recents, show drawer." into klp-dev
* commit '73c3c65b1bb05754c688a76a1dbc79c0120c0915':
  When launched into empty recents, show drawer.
2013-10-07 15:12:12 -07:00
Jeff Sharkey
bcc77b502b Merge "Add <intent-filter> support to <provider>." into klp-dev 2013-10-07 21:41:45 +00:00
Jeff Sharkey
567fdd9fba Merge "When launched into empty recents, show drawer." into klp-dev 2013-10-07 21:36:25 +00:00
Jeff Sharkey
85f5f81320 Add <intent-filter> support to <provider>.
For the new documents work, we're only interested in the subset of
ContentProviders that actually implement DocumentsContract.  Instead
of returning all providers, add <intent-filter> support to make it
easier to limit the set of returned ProviderInfo.

Define a well-known action for DocumentsProviders, and start using it
when querying for roots.  Continue supporting the old <meta-data>
approach until all apps have been updated.

Bug: 8599233
Change-Id: I05f049bba21311f5421738002f99ee214447c909
2013-10-07 14:19:13 -07:00
Jeff Sharkey
a82c2e24bc When launched into empty recents, show drawer.
Pull out drawer to give users more context about meaningful places
to navigate to.  Also fix bug where restored roots weren't being
highlighted.

Bug: 10852518
Change-Id: Id294f6923477ca4dc505c4b0a21a5bdf8b722cf4
2013-10-07 14:08:20 -07:00
Jeff Sharkey
ab5cbb7bb5 am 0e438c2a: am a27366ef: Merge "Ellipsize titles in middle, otherwise end." into klp-dev
* commit '0e438c2a1b4e2de34702ce8332b3853db703dbdb':
  Ellipsize titles in middle, otherwise end.
2013-10-07 13:21:21 -07:00
Jeff Sharkey
a27366efc4 Merge "Ellipsize titles in middle, otherwise end." into klp-dev 2013-10-07 20:17:54 +00:00
Jeff Sharkey
2c4b99fbe6 Ellipsize titles in middle, otherwise end.
Long document titles can include distinguishing details at the end
of the title, so ellipsize in the middle.  All other details ellipsize
at the end.

Bug: 11081420
Change-Id: I2c266ebc594d2ad383033b435acb8adb5fb823bc
2013-10-07 11:39:07 -07:00
Baligh Uddin
0ea4be04a0 Import translations. DO NOT MERGE
Change-Id: I4365c56d96fc1e1aa97e05d154ce23441c5b1431
Auto-generated-cl: translation import
2013-10-07 10:43:11 -07:00
Baligh Uddin
15800b793b Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-04 22:53:07 +00:00
Jeff Sharkey
402401e666 am 2dcba613: am 5b491d63: Merge "Custom pressed states, fixed column sizes." into klp-dev
* commit '2dcba613a736b1c0ba2f9c18c32f171f7bbb1a23':
  Custom pressed states, fixed column sizes.
2013-10-04 15:10:16 -07:00
Jeff Sharkey
2dcba613a7 am 5b491d63: Merge "Custom pressed states, fixed column sizes." into klp-dev
* commit '5b491d630b6628a3558cb1135ac1bc242eab3381':
  Custom pressed states, fixed column sizes.
2013-10-04 15:07:13 -07:00
Jeff Sharkey
ca25db0cb3 Custom pressed states, fixed column sizes.
Use custom pressed state assets.  Use fixed column sizes to prevent
truncating of long dates on small screens.

Also tear down any active CAB when switching fragments.

Bug: 11032418, 11028212
Change-Id: I2bf3dc3f693319b4b55cc901ed460f60faceba35
2013-10-04 14:48:08 -07:00
Baligh Uddin
dfe1303d93 Import translations. DO NOT MERGE
Change-Id: Id6fb45a4be5a4e32cd673127862ff413526dcc7b
Auto-generated-cl: translation import
2013-10-04 12:23:39 -07:00