521 Commits

Author SHA1 Message Date
Jeff Sharkey
3c12a7c6d7 Hold wake-lock during copy operations.
If the CPU goes to sleep during the copy, certain devices will
collapse the USB OTG power domain, which can cause user data loss.

Bug: 24574575
Change-Id: I8e26caac8784490d2dee324b38e6085cd55eb8bb
2015-10-02 08:55:22 -07:00
Baligh Uddin
c5c9bdb08d Import translations. DO NOT MERGE
Change-Id: I7c5c75590f30ee06cd8171bffb04da5073c394dc
Auto-generated-cl: translation import
2015-09-23 01:31:31 -07:00
Baligh Uddin
ebca452900 Import translations. DO NOT MERGE
Change-Id: Ibf24678007e2bdc2e06c8c1b1f3372cb3d6ccd18
Auto-generated-cl: translation import
2015-09-18 13:51:14 -07:00
Jeff Sharkey
350b99c002 am 483bd842: Merge "Only send EXTRA_STACK for private intent." into mnc-dev
* commit '483bd84280ef667e306ec7246d85423ca6b1fde7':
  Only send EXTRA_STACK for private intent.
2015-07-15 21:43:48 +00:00
Jeff Sharkey
04ec6f4f09 Only send EXTRA_STACK for private intent.
Since it's a private Parcelable class, we can't send it to other
third-party apps, since they won't know how to unpack it.

Bug: 22255387
Change-Id: Ie2ea6cf72b733bd122eb3581a5df295cec608425
2015-07-15 09:13:14 -07:00
Geoff Mendal
da868b9a00 Import translations. DO NOT MERGE
Change-Id: Ia6c22efa7d0a9bb73d3d60063228927274209e18
Auto-generated-cl: translation import
2015-07-11 13:39:58 -07:00
Geoff Mendal
20ad92460b Import translations. DO NOT MERGE
Change-Id: I173b85dbcf36fdc7023137949f7bb416dabc2cf5
Auto-generated-cl: translation import
2015-07-08 06:43:44 -07:00
Jeff Sharkey
e6130b6c50 am 6d842f63: Merge "Fix DocumentsUI animation regression." into mnc-dev
* commit '6d842f63a00e34edb583f9fdd6f233c20dcd00f2':
  Fix DocumentsUI animation regression.
2015-07-06 18:12:41 +00:00
Makoto Onuki
164d229a1c am dfd6301f: Merge "If user ejects a storage from details, take user to... ... the storage list view" into mnc-dev
* commit 'dfd6301fa2570ae5b012dd964847531bdfdb3f4b':
  If user ejects a storage from details, take user to... ... the storage list view
2015-07-06 18:05:04 +00:00
Jeff Sharkey
6d842f63a0 Merge "Fix DocumentsUI animation regression." into mnc-dev 2015-07-06 17:58:10 +00:00
Makoto Onuki
dfd6301fa2 Merge "If user ejects a storage from details, take user to... ... the storage list view" into mnc-dev 2015-07-06 17:13:29 +00:00
Geoff Mendal
88b4a0ac56 Import translations. DO NOT MERGE
Change-Id: Icd52bfb7b30de7dbc2c7c7e7f073a4fddb5fa5e3
Auto-generated-cl: translation import
2015-07-06 08:43:33 -05:00
Jeff Sharkey
1f6c9a1214 Fix DocumentsUI animation regression.
Various fragments need backgrounds to protect their contents during
animation transitions.

Bug: 22232368
Change-Id: I4ce4c57650f9b64b3c6101d829dd484417585410
2015-07-05 14:44:51 -07:00
Makoto Onuki
14a6df7d76 If user ejects a storage from details, take user to...
... the storage list view

1. Change to ExternalStorageProvider
When available volumes have changed, it now notifies on
"content://com.android.externalstorage.documents" rather than on
"content://com.android.externalstorage.documents/root/", because it'll also
affect "content://com.android.externalstorage.documents/document/*/children".

2. Change to DocumentUI
- DirectoryLoader now won't crash when a provider returns null.
- DirectoryFragment now closes itself (i.e. emulate a back press) when a load
failed.
- It now correctly reloads contents when a volume is ejected thanks to 1.

Bug 21472170

Change-Id: Icf4bbc2ebb9067313dbbb67083cd4115b0a75c58
2015-07-01 15:11:46 -07:00
Geoff Mendal
c9b6c1767f Import translations. DO NOT MERGE
Change-Id: Id27150d5e6b378f1fe9e79eb0ea8b88392b2cd09
Auto-generated-cl: translation import
2015-07-01 08:38:57 -05:00
Geoff Mendal
d38d3e2b1f Import translations. DO NOT MERGE
Change-Id: Ia1829162e64c53a9c9df9211f41bf29d4e67fd20
Auto-generated-cl: translation import
2015-06-29 08:40:48 -05:00
Makoto Onuki
9feac1425c Remove default activity title to prevent talkback from...
reading the wrong title.

We get a title from DocumentProvider with an async task, and by the time we
get it, it's *usually* too late and talkback end up reading the default title.

Bug 20041072

Change-Id: I7686fe4ae4c157ebfc07bd8b895c4cfdf99c057a
2015-06-23 16:51:45 -07:00
Alan Viverette
15d48a16f6 DO NOT MERGE: Remove DayNight theme
Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.

Though wise men at their end know dark is right,
Because their words had forked no lightning they
Do not go gentle into that good night.

Bug: 21854466
Change-Id: I0b7cd116c23f7df88e94f31b3aee7dd22a102804
2015-06-18 15:15:16 -07:00
Tomasz Mikolajewski
41ce003934 Merge "Remove the action bar icon when there is no drawer enabled." into mnc-dev 2015-06-18 00:15:52 +00:00
Tomasz Mikolajewski
0e591f95bd Allow to customize title of the dialog.
TEST=adb shell am start -a android.intent.action.OPEN_DOCUMENT -e
     android.intent.extra.TITLE 'Upload!' -t "text/plain"
BUG=19150996

Change-Id: Ibded6cfaa2de3698c5eada154efbee2b323464d4
2015-06-17 16:12:14 -07:00
Geoff Mendal
a946fe87e4 Import translations. DO NOT MERGE
Change-Id: Ie78d85789becd82c6fd468d50a47516711e5715a
Auto-generated-cl: translation import
2015-06-17 08:45:37 -05:00
Jeff Sharkey
8bb1245a48 Finish when browsed root goes away.
If we're browsing a specific root, and that root went away, typically
due to formatting.

Bug: 21831184
Change-Id: Ie07607a81e32a7d82c88ad382658a471d47b905d
2015-06-16 20:54:14 -07:00
Geoff Mendal
ee4a297766 Import translations. DO NOT MERGE
Change-Id: I7bb1d35595971e4d2ff83ba40c01524ed243d26d
Auto-generated-cl: translation import
2015-06-15 08:39:05 -05:00
Tomasz Mikolajewski
536ac48aa9 Remove the action bar icon when there is no drawer enabled.
Keep the hamburger menu though if the drawer is visible and unlocked.

TEST=Tested manually on both tablet and phone form factors.
BUG=18685509

Change-Id: Ie6f8d7064da99d2dc34315ccb92ab4db6ee321b6
2015-06-12 15:33:45 -07:00
Jeff Sharkey
8a26514687 Merge "Selected count string needs plurals." into mnc-dev 2015-06-11 18:21:08 +00:00
Jeff Sharkey
f491c72e4a Selected count string needs plurals.
Bug: 21717427
Change-Id: Ie0db8ac30244b022ca5838969fb085230bfc4499
2015-06-11 09:19:37 -07:00
Daichi Hirono
186efa3836 Update visibility of the stack dropdown list after the search view is collapsed.
Previously we hid the stack dropdown list just before the action bar is
collapsed. Then the dropdown list gets back to be visible when the action bar is
collapsed.

The CL updates visibility of the stack dropdown list just after the action bar
is collapsed.

BUG=20945584
Change-Id: Iaf5055bce101f8134accd311829e50f441ddc98b
2015-06-11 14:29:28 +09:00
Jeff Sharkey
5fc247338d New strings!
Bug: 21737573, 21666225, 21756698, 21737666, 21471429
Change-Id: If1c5882d48f798d311f6d2b86277d3c13f06824e
2015-06-10 16:49:11 -07:00
Ben Kwa
c783a5e762 Merge "Enable apps to exclude their own roots from the DocumentsUI roots list." into mnc-dev 2015-06-10 18:30:31 +00:00
Ben Kwa
77797400ec Enable apps to exclude their own roots from the DocumentsUI roots list.
- Add DocumentsContract.EXTRA_EXCLUDE_SELF (boolean extra)
- Add code to DocumentsActivity to cache the providers of the calling
  app if EXTRA_EXCLUDE_SELF is set on incoming Intents.
- Add code to RootsCache to exclude roots from the calling app.
- Add code to allow only system apps to use EXTRA_PACKAGE_NAME.

Change-Id: Ia7cc2a1a297676c7b26f6e583042a4607d8c9a4e
2015-06-10 11:24:55 -07:00
Geoff Mendal
09e34e989c Import translations. DO NOT MERGE
Change-Id: I8f8557a777e3b2ed58593aa20d1a2b0f2a5aa33b
Auto-generated-cl: translation import
2015-06-10 08:55:37 -05:00
Ben Kwa
907c695d40 Merge "Add a divider between the roots selector and files list." into mnc-dev 2015-06-09 17:48:31 +00:00
Ben Kwa
a6a50d037b Add a divider between the roots selector and files list.
BUG=21643911

Change-Id: Ie7c4d1a014b9fbdccb91d80907c89e2309c9891f
2015-06-09 10:43:59 -07:00
Ben Kwa
7c04308f51 Merge "Clean up icons in DocumentsUI." into mnc-dev 2015-06-09 17:35:20 +00:00
Ben Kwa
11be5de36c Clean up icons in DocumentsUI.
- Remove unused icons.
- Replace improperly sized icons with properly sized (24dp) ones.

BUG=21643433

Change-Id: I67595b6bfbbf94f11abe6c1feabe633488decc84
2015-06-08 14:11:33 -07:00
Geoff Mendal
124103fa52 Import translations. DO NOT MERGE
Change-Id: I8592894958f93b88c36e60e0484f5a1ff6a1bc3a
Auto-generated-cl: translation import
2015-06-08 08:45:04 -05:00
Ben Kwa
8dbb43289c Merge "Fix drawer selection to match Material spec." into mnc-dev 2015-06-05 00:51:54 +00:00
Ben Kwa
50698068c1 Fix drawer selection to match Material spec.
- highlighted text changed to match the application primary color
- change highlighted background to light gray
- remove highlight icon tinting (provides insufficient contrast against
  the new light gray background)

BUG=18685226

Change-Id: I4040fa951fd2822cea324e0bd1924d10024b6a11
2015-06-04 16:28:16 -07:00
Geoff Mendal
f806744fce Import translations. DO NOT MERGE
Change-Id: I7855e24fc4715b1bf7cf978dd40b3bd66f242427
Auto-generated-cl: translation import
2015-06-03 11:51:22 -05:00
Steve McKay
92dce15787 Update hamburger share, and delete icons to use the 24x MD icons.
BUG=18685222,17699796
Change-Id: I4b14b83eca7fe30e250e1252cb384bc94e05e0a4
(cherry picked from commit e07525536b7edf584ffc96ba69951794d6096b57)
2015-06-02 23:07:40 +00:00
Geoff Mendal
14a4c5d418 Import translations. DO NOT MERGE
Change-Id: I04d01f1c65927634e8b27c3780e5e392fcdba28b
Auto-generated-cl: translation import
2015-06-01 07:51:58 -07:00
Geoff Mendal
db52f0a5db Import translations. DO NOT MERGE
Change-Id: I40a24917618ab5fb0c5ef063b6ccc6b845bf0ec9
Auto-generated-cl: translation import
2015-05-30 19:36:14 -07:00
Jeff Sharkey
d659f450f3 Fix the build months later?
Change-Id: Ic5902fbe39cf2b536eb75682ad18f06e1ad8983e
2015-05-30 11:20:45 -07:00
Geoff Mendal
cdd71a3087 Revert "Import translations. DO NOT MERGE"
This reverts commit f3173d8a1797fd812997b9246502a05df0591363.

Change-Id: I7e24d340c24f7ba4b67a72d54e57c3558caa7267
2015-05-29 15:33:18 +00:00
Geoff Mendal
f3173d8a17 Import translations. DO NOT MERGE
Change-Id: I30219f300510a51079cb2e514c00f476590e06d5
Auto-generated-cl: translation import
2015-05-29 07:31:36 -07:00
Ben Kwa
7c0ade56f3 Ensure that the copy notification is always cancelable.
If the CopyService dies or is stopped for whatever reason, the cached
"current" job ID will go to null.  In that case, the cancel intent will
be ignored, and the copy notification can never be dismissed.  Adding a
null check to the handleCancel method of CopyService fixes this.

BUG=21365043
Change-Id: I0615328f6033a313fec79f8b63291c7f7373ea0f
2015-05-27 09:19:28 -07:00
Geoff Mendal
32156a7586 Import translations. DO NOT MERGE
Change-Id: Id4da8170bceabc117824f81c25a6019f5584ce0b
Auto-generated-cl: translation import
2015-05-25 09:53:44 -05:00
Steve McKay
4f95badec2 Merge "[mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!" into mnc-dev 2015-05-21 20:27:37 +00:00
Steve McKay
574b4bcd1b [mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!
BUG=21259006
Change-Id: Ic31dfa1a1cffa4340769c08db3e3cb3fb46e31d5
(cherry picked from commit e04e02d027b731448d68995a202c8867c4985fa3)
2015-05-21 20:15:31 +00:00
Geoff Mendal
dc038f3246 Import translations. DO NOT MERGE
Change-Id: Ibc636bc980ceaead21d2eaf2dd813de284341ab0
Auto-generated-cl: translation import
2015-05-21 06:10:03 -07:00