OSDN Git Service
Paulo Sergio Travaglia [Sat, 16 Jan 2016 22:43:18 +0000 (20:43 -0200)]
Change method for getting external storage on marshmallow
The new components/features introduced with marshmallow
(vold 3.0) required a new method for retrieving
external/removable storage devices
These changes were based and use part of the following code:
- Storage access implemented on Settings (uses VolumeInfo class
to list all connected disks (external and emulated)
see refresh method from class StorageSettings
=> packages/apps/Settings/src/com/android/settings/deviceinfo
=> StorageSettings.java
- getVolumeList method from MountService class
(converts VolumeInfo ArrayList item into a StorageVolume
element, which is used by CMFileManager to iterate
contents and build bookmarks):
=> frameworks/base/services/core/java/com/android/server/
=> MountService.java
Michael Bestas [Mon, 25 Jan 2016 17:38:07 +0000 (19:38 +0200)]
Automatic translation import
Change-Id: Id72995e4b55b46e4d7118ae90f68ba391accbe6a
Abhishek Gilra [Fri, 22 Jan 2016 02:09:53 +0000 (18:09 -0800)]
Adding NULL checks AsyncResultProgram.java
Discovered NULL object dereference during the monkey test. Resolving possible NULL dereferences.
Issue-Id: YAM-61
Change-Id: I2b03338557d0f5590678cb1c0532c5cc6f586049
Michael Bestas [Sun, 24 Jan 2016 20:30:47 +0000 (22:30 +0200)]
Improve permission string & cleanup code
Change-Id: Id0e4be70019fd03c165d4f95f1b5f6323e2802ea
Martin Brabham [Mon, 11 Jan 2016 19:39:01 +0000 (14:39 -0500)]
Bump target SDK version to 23
Implement new runtime permissions for STORAGE group
Change-Id: Ia32e5e279f8f4cc9f5cae33cc61cbd73ea2cf41b
Michael Bestas [Mon, 11 Jan 2016 20:41:44 +0000 (22:41 +0200)]
Automatic translation import
Change-Id: I9a3ba488a61525b5ebf006c73a22ef404f091506
longyu.huang [Mon, 4 Jan 2016 07:05:05 +0000 (23:05 -0800)]
dead lock case
[Procedures]
1.filemanager->security storage->create storage with password
2.after creat successfully->menu->add shortcut
3.filemanager->setting->storage option->delete/reset password->stay on input password view(don't input password)
3.press home key
4.enter filemanager from shortcut on home screen
Change-Id: I00101d14adb89b271a974e8b292f81b7f315f942
Keith Mok [Wed, 23 Dec 2015 23:53:31 +0000 (15:53 -0800)]
Change ts file extension mime type
Fix .ts file cannot be played back in filemanager:
"There is no app registered to handle the type of file selected."
Since the supported mime type named in Gallery is mp2ts instead
of mp2t.
Change-Id: I92b31bbcc7aabda83e1b25e6a5b94f4008f6e279
Michael Bestas [Fri, 25 Dec 2015 17:35:04 +0000 (19:35 +0200)]
Automatic translation import
Change-Id: I508af07960dfec060d46a5cc6bab44a98cf2d3d5
Gianmarco Reverberi [Tue, 17 Nov 2015 04:45:45 +0000 (22:45 -0600)]
cmfm: this is TOYBOX
* busybox is deprecated
* remove awk usage
* fix file system info
Change-Id: I7c2bcbd5024e3be283c9fd6ad699183b6fb5bf1a
Keith Mok [Tue, 3 Nov 2015 23:26:46 +0000 (15:26 -0800)]
Fix filemanager not launch
M is using toybox instead of toolbox, some commands in filemanager
relies on toolbox utilities, there are minor difference in handling.
This change removes the "-Gn" argument pass to id command for retrival
the uid/gid, tested on both M and L, there is no need to add -Gn argument,
but in L, it seems -Gn is ignored. In M it will output wihtout the numerical
values causing parsing exception during startup.
Change-Id: I6aac8e94a80671df0a247ffcaf7d69364d7c9ad2
Dan Pasanen [Sun, 11 Oct 2015 20:02:23 +0000 (15:02 -0500)]
CMFileManager: remove org.apache.http import
* This is deprecated and doesn't appear to be used anyway
* https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
Change-Id: Ifa7c3eeb01cbb5827dc3d504933f99e1b847e070
Michael Bestas [Wed, 16 Dec 2015 20:44:37 +0000 (22:44 +0200)]
Automatic translation import
Change-Id: Icce0bd62f63a309155839cf3c49e88c47a6c51df
Michael Bestas [Sat, 28 Nov 2015 15:40:33 +0000 (17:40 +0200)]
Automatic translation import
Change-Id: I7a5da9a22c62463da28f7026d39172fbe441552f
Michael Bestas [Fri, 6 Nov 2015 18:52:40 +0000 (20:52 +0200)]
Automatic translation import
Change-Id: I9a892685da581da30f2ab5f3ef4b44b0ad8e7d50
Michael Bestas [Wed, 28 Oct 2015 21:38:45 +0000 (23:38 +0200)]
Automatic translation import
Change-Id: Ie4d8eceafe740da0d594a8bec97c9676a0df8599
Michael Bestas [Wed, 21 Oct 2015 21:06:47 +0000 (00:06 +0300)]
Automatic translation import
Change-Id: I21fe20cf2a672dea5fa2cf3a353a0ae5e4d723bd
root [Mon, 19 Oct 2015 13:54:28 +0000 (19:24 +0530)]
Thumbnail update on copy and overwrite issue of pictures
issue-id: QRDL-1077
Change-Id: I10d3c861141590806a8e5b9c665b4f4f4b74141a
herriojr [Fri, 16 Oct 2015 22:17:22 +0000 (15:17 -0700)]
Use System Resolver
Converting to using the system resolver. The logic has changed slightly
in the following cases:
Open -- Tries to start activity, falls back to EditorActivity on failure
Open With -- Uses Chooser and populates Editor if not already there
Falls back to EditorActivity on failure
Click on FSObject -- Same as Open
Sending Object -- Same as Open
Cleaned up code around this a little since there were unused parameters.
Note: The Chooser will only show EXTRA_INITIAL_INTENTS if there are
other options as well, which is why we have to do the check up front
to see if we need to add it, and falling back to just using the Editor
if nothing exists to handle it.
Issue-Id: CYNGNOS-1236
Change-Id: I803b86cf6bfec80bbc886025be43ce800afd3be1
root [Wed, 7 Oct 2015 15:34:10 +0000 (21:04 +0530)]
Secure file moving issue fix
Change-Id: I684124bb32747a39d772b41c48d62c4c236b3ed2
Martin Brabham [Mon, 12 Oct 2015 23:41:11 +0000 (16:41 -0700)]
Prevent NPE collecting title, which was preventing
the print action. Use Uri for title and timestamp
for print title.
Change-Id: Ib21006b6e47fd18622c726e9f4beea721328ad6e
Ticket-Id: HAM-874
Michael Bestas [Mon, 12 Oct 2015 14:16:36 +0000 (17:16 +0300)]
Automatic translation import
Change-Id: Iee0bd8f2cb3819b2746ce5323c841dfb2d420aa2
herriojr [Mon, 5 Oct 2015 19:14:46 +0000 (12:14 -0700)]
Make MimeTypes Lowercase
It is standard to have mimetypes as fully lowercase in Android, so
changing the previous additions to be fully lowercase. It appears to
have worked on the device I was testing on, but other devices were
having issues. By making them all lowercase, this will make it so
it is compatible between both sets of devices.
Change-Id: I63764c0d9ec129008868ca5aa2176187834b2bc0
Issue-Id: CYNGNOS-1153
Michael Bestas [Fri, 2 Oct 2015 21:21:41 +0000 (00:21 +0300)]
Automatic translation import
Change-Id: I270ec0b848d03766918ef259d18d3fae2bcd782e
herriojr [Thu, 1 Oct 2015 19:07:20 +0000 (12:07 -0700)]
Adding a few MS MimeTypes
Noticed that these mimetypes are openable by MS, so we added the
mimetypes.
Change-Id: I16c412d8feb2c9f95d8ce4941e60c3e7f9163fd4
Issue-Id: CYNGNOS-1176
herriojr [Tue, 29 Sep 2015 20:38:20 +0000 (13:38 -0700)]
Check If System Wants Intent
After much thought about this last night, I came to the conclusion
that because applications can in fact do this, we need to be able
to support it in a backwards compatible fashion. In doing so, there
are a few cases which won't work with suggestions, however, the
changes here are less severe than what they were before. Now just
an extra check happens to see if the system wants to handle the
intent if nothing was found to handle it.
What this means is any application acting as its own resolver
will not automatically have the system handle it in this case
and we no longer can support suggestion outlined here:
http://developer.android.com/training/basics/intents/sending.html#StartActivity
The suggestion is wrong anyways as an activity isn't guaranteed
to continue to exist after the query when the start is called. Maybe
I'll try and push a documentation change upstream to AOSP for this.
Change-Id: I8510660420ee52c09d03c719850fa14d6b1c4441
Issue-Id: CYNGNOS-1152
Michael Bestas [Thu, 24 Sep 2015 18:59:29 +0000 (21:59 +0300)]
Automatic translation import
Change-Id: I807ac829c21c7552b7eea7d169e6db38c53a3f8b
kai.cao [Mon, 7 Sep 2015 07:12:24 +0000 (15:12 +0800)]
[CMFileManager] Fix fail to move a folder
Fix fail to move a folder to another folder when the one folder name contains the another folder name.
[Reproduce]
1. Create a folder named such as aaa
2. Create another folder named such as aaab
3. Copy or Move the folder aaa to folder aaab
The Operation Fail
Change-Id: I27996f9b9530001fe01eddf80a0cac7a8531c163
Michael Bestas [Fri, 11 Sep 2015 16:58:32 +0000 (19:58 +0300)]
Automatic translation import
Change-Id: Ie9ca363bfbbe5c1218b7dfee14331747b408c0af
Danesh M [Fri, 11 Sep 2015 23:37:37 +0000 (16:37 -0700)]
CMFileManager : Switch to checked states
Selected states are not being tracked properly when rotated.
Repro:
1. Click to open file
2. Tap on first item in resolver dialog
3. Rotate device
4. Press ok
5. Enjoy crash
issue-id: CYNGNOS-991
Change-Id: I9ef5d0571201957eac40edc8bc5e47700752dcc3
James Hiew [Mon, 7 Sep 2015 13:22:58 +0000 (14:22 +0100)]
Indicate number of items to be deleted in confirmation dialog
Re: CYAN-6559
Change-Id: I61bdc32feb2e46ad25c1060ea5eb3856e4aea37a
Michael Bestas [Mon, 31 Aug 2015 22:31:28 +0000 (01:31 +0300)]
Automatic translation import
Change-Id: Ie11fa0faac08db2306e93a65981678c1affb5194
Michael Bestas [Thu, 27 Aug 2015 14:49:49 +0000 (17:49 +0300)]
Fix bookmark string
Change-Id: Ib77e837a45832c685fda01ddbcc80f0b1024ef16
Richard MacGregor [Mon, 24 Aug 2015 22:26:07 +0000 (15:26 -0700)]
Regex metacharacters result in error post search
After receiving search results, the user query was used to sort and
highlight results. If a part of the search included an incomplete regex
syntax (such as a regex metacharacter) it fails to compile the pattern.
Repro steps:
1) Create file with regex metacharactes in name Example: "(test).txt"
2) Search for file using partial name, and only single regex character
(from a set such as "()" or "[]"). Example: "("
Expected results:
Search shows correct files
Observed results:
Search ends up crashing FileManager
Change-Id: Idf5ee3b441481574a5bada1ca7e9048109a13435
Ticket: QRDL-1035
Stephen Bird [Mon, 24 Aug 2015 23:19:05 +0000 (16:19 -0700)]
Search: Fix race condition with results display
Since results are now run through an asynctask before they are added
this created a race condition which lead to the screen sometimes
showing 'no results found' when results are actually available
Ticket: QRDL-995
Change-Id: I5b7ddb44c16603fac7ceca3f955038cc3d646de8
Roman Birg [Mon, 24 Aug 2015 16:42:47 +0000 (09:42 -0700)]
CMFM: don't apply search filter when search hasn't started
Otherwise it can lead to crashes with short searches
Ref: QRDL-950
Change-Id: Icf555435b4cc7107db328c757633a29ffacd62c5
Signed-off-by: Roman Birg <roman@cyngn.com>
Roman Birg [Mon, 17 Aug 2015 23:32:00 +0000 (16:32 -0700)]
CMFM: fix search mime type filter not applying
- update count when selecting mime type filter
- use original result list to narrow results
Ref: QRDL-950
Change-Id: I8715f0831e51adf18257d735b0d455c368083411
Signed-off-by: Roman Birg <roman@cyngn.com>
Stephen Bird [Mon, 24 Aug 2015 22:07:33 +0000 (15:07 -0700)]
Bookmarks: check to see if a bookmark exists before adding it
Previously, this would result in multiple bookmarks
of the same location
Ticket: QRDL-989
Change-Id: I0f19045bc7a6d5fa98c9ef4ee1a8ccda9c501eb1
Tom Powell [Fri, 21 Aug 2015 18:20:07 +0000 (11:20 -0700)]
Automatic translation import
Change-Id: I984e564bb9c452444a0fa1ebcde544ec566a9784
Richard MacGregor [Thu, 20 Aug 2015 23:05:17 +0000 (16:05 -0700)]
FileManager: Fix shortcuts
Fix shortcuts behavior when FileManager is already open.
Repro:
1) Open FileManager
2) Create shortcut for folder
3) Navigate to another folder (not including new folder)
4) Switch to homescreen (launcher)
5) Select the shortcut created in step 2
Expected behavior:
Navigate to shortcut folder
Observed behavior:
FileManager shows last navigated directory (before going to launcher)
Change-Id: I1db814a8990073f8d2de88f90b23b51a1e77cf8e
Ticket: QRDL-1034
Stephen Bird [Fri, 21 Aug 2015 17:34:33 +0000 (10:34 -0700)]
Fix MediaScan issue w/ Deleting
Mediascan wasn't working with deletion of items.
We need to grab the items to delete before actually
deleting them from the file system so that we know
which items we should have deleted.
Change-Id: Ia7b6d5c0612b8053d6b3f442dc9cc9312b02e47b
Ticket: QRDL-982
Tom Powell [Thu, 20 Aug 2015 21:34:36 +0000 (14:34 -0700)]
Automatic translation import
Change-Id: Ie14bd6812288adb5caa0a9a80efe343317c4bdcf
herriojr [Tue, 18 Aug 2015 22:37:02 +0000 (15:37 -0700)]
Fixed MediaScan Issue w/ Directories
MediaScan wasn't being done recursively, so moving a directory which
had content to a different location wouldn't include the children
in the scan. This implementation makes sure all files and folders
within the directory are also scanned. Tested against a dataset of
1000 videos, so performance seems fine.
Change-Id: If3c94f92d96d2d78bb0664112ea235f3e3669363
Ticket: QRDL-1009
herriojr [Tue, 18 Aug 2015 00:37:15 +0000 (17:37 -0700)]
Fix Navigation back from Search
When entering a search result and then backing out all the way, a
history item wasn't being added for the directory the search was
happening in. This fixes it.
Change-Id: I28d5b290a18076f1156f699426420ca78fb3eee6
Cherry-Pick:
b4fc75077143de0ff9e26d8d2644d879ccdc0e84
Stephen Bird [Fri, 14 Aug 2015 02:24:21 +0000 (19:24 -0700)]
Refresh: stop refreshes in action
If a refresh happens while another refresh is occuring, make sure
that that old refresh is cancelled. In addition to this, remove some
old logic that conflicted with itself. Also, keep ahold of the previous directory
before running the task.
Ticket: QRDL-1002
Change-Id: Ibc1f3d468243bc124d3baf259af21464f3c03c84
(cherry picked from commit
080405b548865e6b118b56ca29ed6a6f0d10bcc5)
Michael Bestas [Mon, 17 Aug 2015 17:00:41 +0000 (20:00 +0300)]
Automatic translation import
Change-Id: Ie84cedd51fa2c7305204942118b45e4fa65aaca3
LuK1337 [Sat, 15 Aug 2015 22:13:36 +0000 (00:13 +0200)]
NavigationActivity: Do not reload screen on rotation
* Rotating phone sends user back to /data/media/0
Change-Id: I403734086f0051acffa8577620c77d0ad45da65b
kai.cao [Fri, 7 Aug 2015 01:35:34 +0000 (09:35 +0800)]
Fix FileSystemInfo's ImageView shows incorrect picture in BreadcrumbView .
When we get MountPoint Information in FilesystemAsyncTask,
It will return null.So,the FileSystemInfo's ImageView
will setTag null,and then it will set picture filesystem_warning_drawable.
Change-Id: Ia624312468935cc86956665a3da4824c19728afc
Matt Garnes [Thu, 13 Aug 2015 15:14:52 +0000 (08:14 -0700)]
Fix improper exception handling during copy operation.
- Do not cast ClosedByInterruptException to CancelledOperationException;
return a new CancelledOperationException instead.
Change-Id: I41cb0c605c55fc896a3e483cb5b1f1fcc913676e
Roman Birg [Wed, 29 Jul 2015 00:24:15 +0000 (17:24 -0700)]
CMFM: improved search performance
Search was usable with a small number of results, but when the result
list grows to something > 1000, it can get really laggy.
A few improvemnts:
- The adapter was chunking items and adding them in bulk to the adapter,
but it was doing all the work in the main thread. Now it will process
one item at a time, doing all the rough work in an AsyncTask, and
passing the final objects to the adapter.
- We don't need to do any chunking of items to add them, but sorting
the list as soon as they are added is expensive too, so re-use the
streaming mechanism that was used to add items in chunks, and just
sort the list during that time.
- Cache common variables to not look them up on every result
- Use a List instead of generating a new DataHolder array _every time_ a
new object was added. It would end up GCing thousands of items
every time a new result was added.
- Make the adapter be as simple as possible and just display DataHolder
objects so it doesn't have to do any processing.
Ref: QRDL-950
Change-Id: I17dd606246556cdf2701bbf2b06933f138588d74
Signed-off-by: Roman Birg <roman@cyngn.com>
Matt Garnes [Wed, 12 Aug 2015 18:32:31 +0000 (11:32 -0700)]
Improve copy/move performance with nio and reintroduce cancel.
Utilize FileChannel.transferFrom to copy files faster. Chunk the file
transfer so that we can check between each chunk if the user has
cancelled the copy.
In my tests copying a large file (650MB), this improved performance by 45%.
Also, bring the cancel feature back for non secure storage.
Fixes QRDL-976.
Change-Id: I112cee7b9dfe682a438516f7f938dfd7538f1efb
Tom Powell [Wed, 12 Aug 2015 18:02:23 +0000 (11:02 -0700)]
Automatic translation import
Change-Id: Ia8b830bce11ce8b6a0dfeb4f1c335bca47f4bd96
Stephen Bird [Wed, 12 Aug 2015 17:53:42 +0000 (10:53 -0700)]
RTL: move buttons to proper spot in nav drawer
Change-Id: Ia6d6b1fd95f9def895b8d002ab0316ded6df9caf
Tom Powell [Tue, 11 Aug 2015 22:49:02 +0000 (15:49 -0700)]
Automatic translation import
Change-Id: I070bc04b7acc30d2b3f4f1d6f56cace5bba8fdd0
kai.cao [Wed, 5 Aug 2015 06:17:44 +0000 (14:17 +0800)]
Fix don't pop up "Actions" menu when long pressing on a file/folder
after open and close "Use swipe gesture".
The FlingerListView will setLongClickable false when open "Use swipe gesture",
if we close "Use swipe gesture",the longClickable still false and don't
pop up "Actions" menu.
Change-Id: Ifccb655d619fd32bc569eddfa5f05b0ca3002a50
herriojr [Thu, 6 Aug 2015 01:01:47 +0000 (18:01 -0700)]
Fixed ANR & Memory Leak Associated with 3GP
We are now defaulting to treating 3GP files as video files for
determining the default icon as it was parsing the video files for
their metadata which was causing ANR problems. On top of this, it was
discovered that the metadata parser was leaking memory.
Change-Id: I88f6cf3d8ae1a62d1294bd3272b27715c2352525
Ticket: QRDL-931
herriojr [Wed, 5 Aug 2015 19:24:56 +0000 (12:24 -0700)]
Fixed search to actually open the clicked folder
When a folder was clicked in a search, what was happening is the
refresh() in onStart() was being executed after onActivityResult(), so
the changeCurrentDir() executed in onActivityResult() was being
overriden by the refresh in onStart(). Since the mCurrentDir wasn't
being set until the NavigationTask ends, it would always go back to
the original directory. The change is to make the refresh not happen
if a NavigationTask is currently under way.
Change-Id: I5c354554c9b15fc9d14b4665852b40fb6a1f8853
Ticket: QRDL-932
herriojr [Tue, 4 Aug 2015 22:01:02 +0000 (15:01 -0700)]
Fixed ANR associated with SecureStorage
An ANR was happening on SecureConsole when a very large item was
added, canceled, and click the parent in the Secure folder. This is
caused by the locking mechanism used by SecureConsole. Consoles,
long-term, need to be refactored to not synchronize on the
SecureConsole object itself during execute. The only fix we can do
without full refactoring is to not allow cancelling the operation
because the Console doesn't support the cancel operation.
Change-Id: I845372567b8656d63192bfde27952240915ecfe6
Ticket: QRDL-971
herriojr [Wed, 5 Aug 2015 16:40:14 +0000 (09:40 -0700)]
Revert "Made NavigationView reliant on FileObserver to keep up to date."
This reverts commit
7b09bb0f1390b72d0ac18484721998eaf805e605.
Change-Id: I24b6115c89e568f6895a3a9d0c074151b85c0be2
Michael Bestas [Wed, 5 Aug 2015 14:59:22 +0000 (17:59 +0300)]
Automatic translation import
Change-Id: Iab2d12695e64a363f730aea8599624b5038623e4
herriojr [Tue, 28 Jul 2015 21:52:47 +0000 (14:52 -0700)]
Made NavigationView reliant on FileObserver to keep up to date.
We no longer deal with having to refresh a directory upon reentering.
Instead we now just listen on the directory for changes and update as
necessary. This will make it much more difficult to get out of sync
with the file system in pretty much all situations.
Changed per comments on patch to no longer do refreshes for the list
when items change as the FileObserver handles all of this.
Change-Id: I28a6af965708ce76107a09d6b931f4c7bafb8365
Ticket: QRDL-932
kai.cao [Mon, 27 Jul 2015 07:21:55 +0000 (15:21 +0800)]
[CMFileManager] Fix can't copy after disconnect with pc.
Preconditions
1.insert a sdcard.
2.the phone connect with pc and the usb computer connection as Mount Sd card.
Procedures
1.Go to “File Manager”.
2.Copy a file in sdcard.
3.Connect to pc when the system is copying.
4.The CMFileManager will forced termination and switch off the connecting with pc.
5.Go to CMFileManager and copy a file in Sd card.
The copy function is invalid and popup "The operation's command was not found ..."
Change-Id: I042550ce69f4c31a6fe46dfc9aeb53b34588d53f
herriojr [Wed, 29 Jul 2015 23:26:59 +0000 (16:26 -0700)]
ANR Caused by passes over Data Set on notifyDataSetChanged()
Logic existed which took a pass over the data on the UI thread each
time notifyDataSetChange was called which can cause an ANR on a large
data set. This fix removes a lot of the unnecessary logic associated
with this and moves it to getView(). Performance still seems good on
the OnePlus for scrolling.
Change-Id: Idde74f0688fef0ba7e4b560b06d9494896a24174
Ticket: QRDL-931
Stephen Bird [Fri, 24 Jul 2015 01:42:09 +0000 (18:42 -0700)]
Secure Move: Check to make sure libtruecrypt correctly errored
When copying an item out of secure storage and into the regular file system
truecrypt will sometimes report that the file operation failed. When in fact the
operation was a complete success. Add a check to make sure truecrypt is correct.
Change-Id: I1520455a9ce9dc403f2ca6fb50cf1a4f8604bc64
herriojr [Mon, 27 Jul 2015 19:07:09 +0000 (12:07 -0700)]
Fix Secure SD Card Entry to open folder.
Whenever the secure folder was opened from the drawer, it would prompt
for a password and then go to the root folder again. This was caused
by the logic in onResume() which is all meant for when entering
another activity and then coming back into this activity. This should
really be the job on onStart() as onResume() also handles dialogs.
Change-Id: I45e0e44e3e8f9031b0685628a3f24c02725e24e1
Ticket: QRDL-946
herriojr [Wed, 22 Jul 2015 16:12:34 +0000 (09:12 -0700)]
Refactored the ImageLoader a bit, so that it doesn't have trouble
loading images.
There were a couple of problem causing this, so I
felt it best to change the implementation.
Change-Id: Ic77a94681d77fa4fba49f3f24f40e260220b925a
Ticket: QRDL-905
Michael Bestas [Mon, 27 Jul 2015 17:49:07 +0000 (20:49 +0300)]
Automatic translation import
Change-Id: I3a1a0a8df491679ba323c652640d9ab74a15cfbb
herriojr [Tue, 21 Jul 2015 16:32:29 +0000 (09:32 -0700)]
Moved the sort of the data set off the UI Thread.
For large data sets, this can cause slowdown on older devices or if
you have a significant data set size.
Change-Id: I1eeea9132df0d4e5c8dad17009b648826e3386c6
Ticket: QRDL-931
Michael Bestas [Sun, 19 Jul 2015 12:47:38 +0000 (15:47 +0300)]
Automatic translation import
Change-Id: I8f68531ffe9138ebbd89e9d483fac9593ffcd977
Dave Kover [Fri, 17 Jul 2015 19:49:16 +0000 (12:49 -0700)]
Update launcher iconography.
Visual refresh for the launcher iconography. Remove the circle.
What does it even mean?!?!?!
Change-Id: I666280112845ef4fd8edad9958213ea71248ad62
Ticket: DES-278
herriojr [Wed, 15 Jul 2015 22:58:15 +0000 (15:58 -0700)]
Changed NavigationView.refresh() in onResume() of the activity to try
to restore the original position.
The only caveat is because the history items don't maintain the scroll
offset, it's not a perfect restore. Ideally, we want to maintain the
scroll offsets of the first item within the AdapterView and restore
those as well.
Change-Id: I69b01bef11e26a29aabd57d2bc3e7853b6f67e08
Ticket: QRDL-922
Stephen Bird [Thu, 9 Jul 2015 01:04:43 +0000 (18:04 -0700)]
Preferences: Move huge paragraph description to own item
In some languages, this doesn't fit well into the switch
preference. This huge wall of text also looks pretty bad
when it shares a row with the switch itself. On its own
row, this fits quite nicely.
Change-Id: I0b35d84965a800e578d3557bfc522f34aabb79f0
Stephen Bird [Wed, 15 Jul 2015 19:32:23 +0000 (12:32 -0700)]
ProgressDialog: Require user to explicitly use the cancel button.
This prevents accidental touches outside of the dialog during long operations
Change-Id: I5d903a56aa8e72963967629bd4d844d19e3922dc
Stephen Bird [Thu, 2 Jul 2015 21:01:49 +0000 (14:01 -0700)]
Editor: Handle content uri's in the editor
Previously, files opened that were not contained
inside the /data/media partition were considered
invalid.
Repo steps:
- Open email with .txt attachment
- Open attachment with Editor
This also fixes similar issues all across the
system where content uri's would not open in
editor. Previously they would report that the
user needed to gain root access.
Change-Id: I15aa3fd81ae261f66920d253d6adebe28cf28e66
Michael Bestas [Sun, 12 Jul 2015 22:00:31 +0000 (01:00 +0300)]
Automatic translation import
Change-Id: Idb0386b4901f0c968be71f1787c4fa184f6f7f4e
Stephen Bird [Mon, 29 Jun 2015 18:54:32 +0000 (11:54 -0700)]
configurationChanged: Don't handle the orientation change in our main Activity
Let file manager redraw its actionbar on rotate.
Otherwise, strange things happen with popupwindows
Change-Id: I3c88e6df92251e895030bb80e4f3d7417716f505
Stephen Bird [Thu, 9 Jul 2015 23:28:20 +0000 (16:28 -0700)]
Secure Storage: Fix unlock button
Change-Id: I852fff76aef4f47bbd6d809c64afcc2f77165553
Stephen Bird [Wed, 8 Jul 2015 20:03:32 +0000 (13:03 -0700)]
Easy Mode: Fix exit on easy mode screen
Change-Id: Iec39763194916c12c1947fb4f297e74c6dfa2f5f
weldoncyngn [Tue, 7 Jul 2015 01:17:23 +0000 (18:17 -0700)]
Android.mk don't build source components in tests/
Change-Id: I641be52ded5d94392f40f5294f8a58e3037067b8
(cherry picked from commit
0877c4d8a0eeb331bd7e3a6b27b95ef1cc5eced5)
Michael Bestas [Wed, 1 Jul 2015 21:18:19 +0000 (00:18 +0300)]
Automatic translation import
Change-Id: I139b30a23ff98bec0f62bb79167cf0c12c403b72
Stephen Bird [Mon, 29 Jun 2015 18:26:19 +0000 (11:26 -0700)]
ActionBar TextSelection: Prevent overlay of textfield
Selected text in the actionbar would be covered by the
actionbar options.
Eg: Search Repro steps:
- Click the search button in CMFM
- Type something into the searchbox
- Select that text
- Text is covered
Change-Id: Ie4978035b27d938becf847f6438baffd0a099f14
Roman Birg [Tue, 23 Jun 2015 14:06:33 +0000 (07:06 -0700)]
Shell console: fix bug in shell output stream
The command is finished and the partial result may also have the command
exit code. When the partial stream does have the exit code, we were
writing *only* the contents of the exit code, but we need to write
everything *until* the exit code, keeping the contents intact.
Change-Id: I5e7af1125270c394f42fe7661cbefdd98c6a6052
Signed-off-by: Roman Birg <roman@cyngn.com>
Michael Bestas [Mon, 22 Jun 2015 22:00:19 +0000 (01:00 +0300)]
Automatic translation import
Change-Id: I7bce16537b1a10d09ff48ae6aeb3495e9f7ef86a
Roman Birg [Wed, 17 Jun 2015 17:58:01 +0000 (10:58 -0700)]
Fix parsing of shell command output regardless of encoding
We always know the start and end control patterns will be in UTF-8.
However, the content in between could be encoded differently.
Search for the patterns in the shell command output using raw bytes,
instead of a string pattern match.
Change-Id: I6cb019b644d371c37593fe26784f6e9d41844dec
Signed-off-by: Roman Birg <roman@cyngn.com>
Michael Bestas [Sat, 13 Jun 2015 17:58:58 +0000 (20:58 +0300)]
Automatic translation import
Change-Id: I9e33f7c51743daa032040c2b88e3303262f9f5ba
d34d [Fri, 12 Jun 2015 17:13:34 +0000 (10:13 -0700)]
Properly validate fields when resetting password
The logic for validating secure storage passwords is designed
for when a user creates a new password and not when they reset
it. This causes the dialog to enable the "Reset" button prematurely.
This patch adds the necessary checks for when mResetPassword is true
Change-Id: I6d52865b2316ff6eeffeb5eaf61e787f6222e9f7
Stephen Bird [Thu, 11 Jun 2015 20:34:27 +0000 (13:34 -0700)]
onResume: Refresh current view
Sometimes files get deleted while FM is in
the background. Let's update the list of
current items every time we resume just in
case.
Change-Id: Ib3076ec97d9a0af23f57bb83bff6e0de9c728285
Stephen Bird [Mon, 8 Jun 2015 23:19:43 +0000 (16:19 -0700)]
Sizes: Let disk usage show sizes as doubles
This way, weird file system sizes display nicely.
Without this a mountpoint with a size of 1.68GB
displays as 1GB.
Change-Id: I72e0d8ff911dd942efd5860f2d86607ebbb30fcb
Stephen Bird [Fri, 5 Jun 2015 22:41:39 +0000 (15:41 -0700)]
MediaScanning: Update with calls to Mediascanner
With older versions of android, updating with
.delete was the proper way to remove these items
The issue is that, doing this does not update MTP.
Change-Id: I9b7098927fbda6e78a9baedb5e5e35968c082108
d34d [Wed, 10 Jun 2015 22:55:39 +0000 (15:55 -0700)]
Delete destination file when copy fails
Change-Id: Ic398a2eaa7ac06d8c2ffccc10033d2d32a0dba60
(cherry picked from commit
766c7ba627fb8d685408429ce027c6826bb9c2ab)
(cherry picked from commit
b2dfe80d30f5e82ae231fe7392ed0786a4661dfa)
Michael Bestas [Tue, 9 Jun 2015 17:34:35 +0000 (20:34 +0300)]
Automatic translation import
Change-Id: I490532f63d831321f19276754acd7241eb83b508
Michael Bestas [Sun, 31 May 2015 13:57:15 +0000 (16:57 +0300)]
Automatic translation import
Change-Id: I546cb75cb2f77e82c95741b89668222873ac938e
kai.cao [Wed, 20 May 2015 03:26:05 +0000 (11:26 +0800)]
Fix there are no folders in NavigationView Pinned file manager
Procedures
1.Go to Settings -> Security ->Screen pinning and Open the screen pinning.
2.Go to FileManager and Callout the Recents Task.
3.Press the screen pinning button and lock the CMFileManager screen.
4.Press back key sometimes when the scren pinning toast show.
5.Open DrawerLayout and Press the Internal storage
6.Press the All to enter NavigationView.
There are no folders in NavigationView.
Change-Id: I7bbdad87812a66c346c4632886b42c3c79540373
Michael Bestas [Sun, 24 May 2015 20:32:56 +0000 (23:32 +0300)]
Automatic translation import
Change-Id: I1863951f4a5b09717235c534a6dacf9ba99a0596
kai.cao [Wed, 20 May 2015 03:26:05 +0000 (11:26 +0800)]
[CMFileManager]Fix CMFileManager sometimes crash.
sometimes,the CMFileManager crash.
Change-Id: Id82ec92c680248539bb070c30b6bf45c2feab6ab
kai.cao [Wed, 20 May 2015 08:54:16 +0000 (16:54 +0800)]
[CMFileManager]Fix the FileManager Crash.
the file manager crash sometimes.
Change-Id: I775d30f4f81c97a178c93c05ae83a3336fb4caa4
Zyg0te [Thu, 14 May 2015 11:55:17 +0000 (13:55 +0200)]
CMFileManager: Improved strings
Its now more obvious that the user is dealing with a secure storage partition.
Change-Id: I2b6d4454914d414df191e617ec5e98f3fac7ac5c
kai.cao [Thu, 16 Apr 2015 02:15:45 +0000 (10:15 +0800)]
[CMFileManager] The remember selection don't work when open a file
Preconditions
the system have two Activity have the same package name and the two activity receive the same action(Such as MediaPlaybackActivity and AudioPreview in "om.android.music"
Procedures
1.Go into Music directory,open a mp3 file.
2.select remember selection in music(this is MediaPlaybackActivity).
3.back to filemanager,and open the file again.
The file open as AudioPreview,it should open as MediaPlaybackActivity.
Change-Id: I58469b0bf5bece221fdec8be8f2368c8c157a0fb
Stephen Bird [Tue, 19 May 2015 17:32:46 +0000 (10:32 -0700)]
Update Editor Activity to handle Content URI
This fixes a instance where the editor is an option
for a file uri, but then is no longer an option once the
uri is moved into an applications data storage.
Change-Id: Ie7a55137bdce2fa78ba7ae71b48ef2ba8e68d5ff
Martin Brabham [Fri, 15 May 2015 20:27:56 +0000 (13:27 -0700)]
Prevent possible OutOfBoundsException
Change-Id: I8fc90a2ade069764732c35b71c5ae450d5d3cc5a