OSDN Git Service

android-x86/packages-apps-CMFileManager.git
8 years agoFix don't pop up "Actions" menu when long pressing on a file/folder
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

8 years agoFixed ANR & Memory Leak Associated with 3GP
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

8 years agoFixed search to actually open the clicked folder
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

8 years agoFixed ANR associated with SecureStorage
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

8 years agoRevert "Made NavigationView reliant on FileObserver to keep up to date."
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

8 years agoAutomatic translation import
Michael Bestas [Wed, 5 Aug 2015 14:59:22 +0000 (17:59 +0300)]
Automatic translation import

Change-Id: Iab2d12695e64a363f730aea8599624b5038623e4

8 years agoMade NavigationView reliant on FileObserver to keep up to date.
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

8 years ago[CMFileManager] Fix can't copy after disconnect with pc.
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

8 years agoANR Caused by passes over Data Set on notifyDataSetChanged()
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

8 years agoSecure Move: Check to make sure libtruecrypt correctly errored
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

8 years agoFix Secure SD Card Entry to open folder.
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

8 years agoRefactored the ImageLoader a bit, so that it doesn't have trouble
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

8 years agoAutomatic translation import
Michael Bestas [Mon, 27 Jul 2015 17:49:07 +0000 (20:49 +0300)]
Automatic translation import

Change-Id: I3a1a0a8df491679ba323c652640d9ab74a15cfbb

8 years agoMoved the sort of the data set off the UI Thread.
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

8 years agoAutomatic translation import
Michael Bestas [Sun, 19 Jul 2015 12:47:38 +0000 (15:47 +0300)]
Automatic translation import

Change-Id: I8f68531ffe9138ebbd89e9d483fac9593ffcd977

8 years agoUpdate launcher iconography.
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

8 years agoChanged NavigationView.refresh() in onResume() of the activity to try
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

8 years agoPreferences: Move huge paragraph description to own item
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

8 years agoProgressDialog: Require user to explicitly use the cancel button.
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

8 years agoEditor: Handle content uri's in the editor
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

8 years agoAutomatic translation import
Michael Bestas [Sun, 12 Jul 2015 22:00:31 +0000 (01:00 +0300)]
Automatic translation import

Change-Id: Idb0386b4901f0c968be71f1787c4fa184f6f7f4e

8 years agoconfigurationChanged: Don't handle the orientation change in our main Activity
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

8 years agoSecure Storage: Fix unlock button
Stephen Bird [Thu, 9 Jul 2015 23:28:20 +0000 (16:28 -0700)]
Secure Storage: Fix unlock button

Change-Id: I852fff76aef4f47bbd6d809c64afcc2f77165553

8 years agoEasy Mode: Fix exit on easy mode screen
Stephen Bird [Wed, 8 Jul 2015 20:03:32 +0000 (13:03 -0700)]
Easy Mode: Fix exit on easy mode screen

Change-Id: Iec39763194916c12c1947fb4f297e74c6dfa2f5f

8 years agoAndroid.mk don't build source components in tests/
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)

8 years agoAutomatic translation import
Michael Bestas [Wed, 1 Jul 2015 21:18:19 +0000 (00:18 +0300)]
Automatic translation import

Change-Id: I139b30a23ff98bec0f62bb79167cf0c12c403b72

8 years agoActionBar TextSelection: Prevent overlay of textfield
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

8 years agoShell console: fix bug in shell output stream
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>
8 years agoAutomatic translation import
Michael Bestas [Mon, 22 Jun 2015 22:00:19 +0000 (01:00 +0300)]
Automatic translation import

Change-Id: I7bce16537b1a10d09ff48ae6aeb3495e9f7ef86a

8 years agoFix parsing of shell command output regardless of encoding
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>
9 years agoAutomatic translation import
Michael Bestas [Sat, 13 Jun 2015 17:58:58 +0000 (20:58 +0300)]
Automatic translation import

Change-Id: I9e33f7c51743daa032040c2b88e3303262f9f5ba

9 years agoProperly validate fields when resetting password
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

9 years agoonResume: Refresh current view
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

9 years agoSizes: Let disk usage show sizes as doubles
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

9 years agoMediaScanning: Update with calls to Mediascanner
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

9 years agoDelete destination file when copy fails
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)

9 years agoAutomatic translation import
Michael Bestas [Tue, 9 Jun 2015 17:34:35 +0000 (20:34 +0300)]
Automatic translation import

Change-Id: I490532f63d831321f19276754acd7241eb83b508

9 years agoAutomatic translation import
Michael Bestas [Sun, 31 May 2015 13:57:15 +0000 (16:57 +0300)]
Automatic translation import

Change-Id: I546cb75cb2f77e82c95741b89668222873ac938e

9 years agoFix there are no folders in NavigationView Pinned file manager
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

9 years agoAutomatic translation import
Michael Bestas [Sun, 24 May 2015 20:32:56 +0000 (23:32 +0300)]
Automatic translation import

Change-Id: I1863951f4a5b09717235c534a6dacf9ba99a0596

9 years ago[CMFileManager]Fix CMFileManager sometimes crash.
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

9 years ago[CMFileManager]Fix the FileManager Crash.
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

9 years agoCMFileManager: Improved strings
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

9 years ago[CMFileManager] The remember selection don't work when open a file
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

9 years agoUpdate Editor Activity to handle Content URI
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

9 years agoPrevent possible OutOfBoundsException
Martin Brabham [Fri, 15 May 2015 20:27:56 +0000 (13:27 -0700)]
Prevent possible OutOfBoundsException

Change-Id: I8fc90a2ade069764732c35b71c5ae450d5d3cc5a

9 years agoAutomatic translation import
Michael Bestas [Fri, 15 May 2015 21:01:02 +0000 (00:01 +0300)]
Automatic translation import

Change-Id: I6c657a479d0a9ed46015d73478783c1fd8caae26

9 years agoFix back arrow discoloration in action bar
Stephen Bird [Fri, 15 May 2015 17:21:07 +0000 (10:21 -0700)]
Fix back arrow discoloration in action bar

Change-Id: Ic428a0e4fb7802f1983e7c575adb904c1f6fd65d

9 years agoCM Easy Mode File Manager Navigation fixes
Stephen Bird [Wed, 13 May 2015 00:30:16 +0000 (17:30 -0700)]
CM Easy Mode File Manager Navigation fixes

This patch fixes an issue where the user cannot
get back to easy mode without exiting and re-entering
the application in certain situations

Repro Steps:
1) Select "All" in the easy mode list
2) Action Bar arrow is gone, pressing back on the navbar
does not return you to easy mode

Change-Id: I5f6b47b8b69e57cffac77f7bfa24f8a75d8ff1d4

9 years agoPrevent possible OOBE when ran under monkey test
Martin Brabham [Thu, 14 May 2015 22:57:16 +0000 (15:57 -0700)]
Prevent possible OOBE when ran under monkey test

Change-Id: I8ec74d9379ba68ad099d89ec7cd16f65e414a213

9 years ago[CMFileManager]Fix the software don't hide when the drawerlayout open.
kai.cao [Tue, 12 May 2015 02:44:37 +0000 (10:44 +0800)]
[CMFileManager]Fix the software don't hide when the drawerlayout open.

Procedures

1.Go to “File Manager”.
2.Press Search button and let the software popup.
3.Open the DrawerLayout.

the software still show when the drawerlayout popup.

Change-Id: I14b4d995b76bb12ae9c71b70dd6bb4b582bd5aa7

9 years ago[CMFileManager]Fix the search result does not display the file path when the result...
kai.cao [Wed, 29 Apr 2015 05:07:07 +0000 (13:07 +0800)]
[CMFileManager]Fix the search result does not display the file path when the result is zero

Procedures

1.Go to “File Manager”.
2.Enter a folder and Input the search button.
3.Input key words which can not be found in the folder.
4.Check the words below of the Search result.

the file path don't display when the result is zero.

Change-Id: I01ca6d34d0528fb19a5712b3fc8c05d228432173

9 years agoCMFM : Group m4v under video/mp4
Rohit Yengisetty [Thu, 30 Apr 2015 00:50:31 +0000 (17:50 -0700)]
CMFM : Group m4v under video/mp4

Change-Id: I37e5da8c499233b6a59ec8528c9bc00cde28238c
(cherry picked from commit a2cc7d8455fa56234766cd1f3181141b69a1216f)

9 years agoAutomatic translation import
Michael Bestas [Fri, 1 May 2015 23:51:38 +0000 (02:51 +0300)]
Automatic translation import

Change-Id: Idfda3b4193c7a08f921890ffa174ccb0d23204c1

9 years ago[CMFileManager]Fix click two times when check the 'Skip media scan' in Secure storage
kai.cao [Wed, 29 Apr 2015 07:42:14 +0000 (15:42 +0800)]
[CMFileManager]Fix click two times when check the 'Skip media scan' in Secure storage

Procedures

1.Go to “File Manager”.
2.Enter the secure directory and Press the menu button.
3.Press the Properties item.
4.Check the media scan.

Pop "Failed to prevent media scanning" and should click again.

Change-Id: I7990683e373c05fdfcee47bf5189820206bceba5

9 years agoAutomatic translation import
Michael Bestas [Fri, 24 Apr 2015 22:13:51 +0000 (01:13 +0300)]
Automatic translation import

Change-Id: I4d2b17d0f4ec00915ff36255a8ccfce547a88db1

9 years agoCMFM: Support launching from AndroidTV LeanBack UI
dhacker29 [Tue, 14 Apr 2015 06:31:36 +0000 (02:31 -0400)]
CMFM: Support launching from AndroidTV LeanBack UI

Change-Id: I306922501daa030a3ab401771bca57506d160fed

9 years ago[CMFileManager] Fix "File Manager isn't responding..." pops up after tapping "Secure...
kai.cao [Tue, 21 Apr 2015 07:21:01 +0000 (15:21 +0800)]
[CMFileManager] Fix "File Manager isn't responding..." pops up after tapping "Secure storage" in File Manager

Procedures
1.Go to “File Manager”.
2.Press "Menu" icon on upper left corner,and then tap "Secure storage".
3.Select "CANCEL" when the note "Create storage" pops up.
4.Repeat Step2 again,check the phone

Have no response when pressing "Secure storage",wait about 10-20s,the note "File Manager isn't responding..." pops up.

Change-Id: I8ce4b55002d6fc34f89c4a59404469e7f3637cbc

9 years agoImprove string for crowdin
Michael Bestas [Wed, 22 Apr 2015 00:13:18 +0000 (03:13 +0300)]
Improve string for crowdin

* Unnecessary line wrapping appears bad on crowdin

Change-Id: I75b4e81f85b2d3cf5aef960e3be4e3b4881dad91
(cherry picked from commit 164c3d9e6e5a1a8fe5d82fc5027820655165cf77)

9 years ago[CMFileManager] Fix the DrawerLayout don't disapper after press back key.
kai.cao [Tue, 21 Apr 2015 07:01:59 +0000 (15:01 +0800)]
[CMFileManager] Fix the DrawerLayout don't disapper after press back key.

Procedures
1.Go into filemanager and enter a directory(such as Music).
2.Open the menu Button in the top left corner and popup the drawerlayout.
3.press the back key.

The DrawerLayout don't disapper and the navigation view back to the next higher level.

Change-Id: I13c78491e2be767e7611d57c2c513013d96465eb

9 years agoCMFileManager: when cancel coping, the dest file also exists and is incomplete.
jing.zhao [Mon, 20 Apr 2015 09:54:14 +0000 (17:54 +0800)]
CMFileManager: when cancel coping, the dest file also exists and is incomplete.

When cancel coping, will delete the dest file.

Change-Id: I0acf7cc196dec82ed2156e9706c1364922581cdf

9 years agoCMFileManager: After change language, the navigation view item summary doesn't change
jing.zhao [Mon, 20 Apr 2015 01:32:50 +0000 (09:32 +0800)]
CMFileManager: After change language, the navigation view item summary doesn't change

[The System Language is Chinese]
1. open the CMFileManager Application.
2. press home button and goto Settings to change the System Language from Chinese to English (can change the others).
3. open the CMFileManager again, Click "All" , you can see the item's summary doesn't completely change.

Open the CMFileManager, After change language, the item also will change.

Change-Id: I40969d98718463996c34951effef50fa4e42c4ec
(cherry picked from commit 10a073ee66dfe862804b2c2a39f93662bc554599)

9 years ago[CMFileManager] Fix the filemanager can copy parent folder to child folder
kai.cao [Thu, 16 Apr 2015 02:55:34 +0000 (10:55 +0800)]
[CMFileManager] Fix the filemanager can copy parent folder to child folder

Procedures
1.Go into filemanager and select a directory(such as Music).
2.enter the Music and copy the folder.

The filemanager stay in "copying" interface.

Change-Id: I9a765d1d89c4736b26d57bdf99237f04a810f254

9 years agoEnable ok button, filename is still valid.
Martin Brabham [Fri, 17 Apr 2015 23:39:32 +0000 (16:39 -0700)]
Enable ok button, filename is still valid.

Change-Id: I38f3be02e60597a169850c2a47127dac5784236c
(cherry picked from commit 16b30c40f8164c760d0e40c00e19bcc4dac67ccf)

9 years agoMake the new filename max length error message show.
Martin Brabham [Fri, 17 Apr 2015 19:36:21 +0000 (12:36 -0700)]
Make the new filename max length error message show.

Change-Id: Ic997110fb78d253c7d3602a5b81157fceb9f73b2

9 years agoAutomatic translation import
Michael Bestas [Fri, 17 Apr 2015 19:18:33 +0000 (22:18 +0300)]
Automatic translation import

Change-Id: I7afd40a46444c017c6dffbc9f8f5a057003c4d26

9 years agoCMFileManager: Fix CMFileManager display "sdcard1" and the content is null after...
kai.cao [Tue, 14 Apr 2015 08:42:27 +0000 (16:42 +0800)]
CMFileManager: Fix CMFileManager display "sdcard1" and the content is null after adding a new user/guest

step:
- new user or guest in Settings
- Go to CMFileManager and check

Change-Id: Id6da696b8173f0544a022bc5e3d64d94b7123526

9 years agoCMFileManager: Printing preview content is not show complete.
jing.zhao [Fri, 17 Apr 2015 01:22:02 +0000 (09:22 +0800)]
CMFileManager: Printing preview content is not show complete.

fix the PageCount from int to double

Change-Id: I72f1577f22b563456b43dded4058572d328009c3
(cherry picked from commit ed63368d1d085d4021329d6720ab7a32765b7768)

9 years agoImplement a dialog that warns the user that we must expose the content of the file
Martin Brabham [Wed, 15 Apr 2015 22:33:25 +0000 (15:33 -0700)]
Implement a dialog that warns the user that we must expose the content of the file
by copying it out to an unsecure location in order to allow the external applications
to read the files.

Change-Id: I163ccd21678f413170e44cf3e8d341cd4747b1ac
(cherry picked from commit 58928e7facbdd63d4320748b277e94417fe402bb)

9 years agoAutomatic translation import
Michael Bestas [Mon, 6 Apr 2015 21:49:37 +0000 (00:49 +0300)]
Automatic translation import

Change-Id: I1bdbe31959ec6bf2c0bb4b56a61127b6e2ab3722

9 years agoSupport RTL layouts everywhere.
Martin Brabham [Tue, 27 Jan 2015 23:27:12 +0000 (15:27 -0800)]
Support RTL layouts everywhere.

- Fix custom title text clipping.
- Fix breadcrumbs
- Remove FSO Dialog permission spinner width adjustment that did not
  function on RTL.
- Fix history and bookmarks items to align properly.
- Update layouts to function with RTL

Change-Id: I3cd4032887371509ec2847bae6f889558664a356
(cherry picked from commit d0d367d2d681e2372813a81246dea45eab572ce2)

9 years ago[CMFileManager] Always display searching progress after back to the search result...
jing.zhao [Wed, 15 Apr 2015 10:13:28 +0000 (18:13 +0800)]
[CMFileManager] Always display searching progress after back to the search result view

1.Go into the root directory, click the search icon and input the directory name(Such as: dlt).
2.In Search results view, you can see the dlt directory, then click the directory.
3.press back key, back to the Search results view, the lower right corner's searching progress has always show.

After Seaching, the searching progress shouldn't show.

Change-Id: Id1a3291effcebcd7c9536dec74175d6d019e83f1
(cherry picked from commit 37e947a354edad76d4e91258b535c4658b54e2e9)

9 years agoImplement ability to cancel file copy.
Martin Brabham [Fri, 3 Apr 2015 03:33:41 +0000 (20:33 -0700)]
Implement ability to cancel file copy.

- Short circuit Java CopyCommand for move/copy when the user cancels
  the dialog.
- Bubble up CancelledOperationException when the Cancel/Move operation
  is cancelled. Handle cancellation differently than success.

Change-Id: I3e4426aaccf42e12bf299041d489e72b3b76a626
(cherry picked from commit 7e13ec2fa4fc052c2a880a8dba8ed871b3bc10ca)

9 years agoFix deadlock when reading shell output.
Matt Garnes [Fri, 10 Apr 2015 00:40:00 +0000 (17:40 -0700)]
Fix deadlock when reading shell output.

Change-Id: Ia38ac6c415506f21ffde5a4c3e658e810dea92da
(cherry picked from commit 2f7e43ce8f37b61c2998aadc56c6323faae80c51)

9 years agoDetect text encoding with juniversalchardet.
Matt Garnes [Tue, 7 Apr 2015 01:25:47 +0000 (18:25 -0700)]
Detect text encoding with juniversalchardet.

- When opening files in the built in editor for display, detect the
  encoding with juniversalchardet, so that the correct encoding will be
  used.
- Use byte buffers to back ShellConsole instead of StringBuffers

Change-Id: I85fa567ef589a82f1c8604f1f215647376c31c9a
(cherry picked from commit 55c55835d3bd685dde542b4f5952ce401542ab84)

9 years agoCMFileManager: change dialog buttons to use dialog_text_color theme
Raj Yengisetty [Fri, 10 Apr 2015 21:11:36 +0000 (14:11 -0700)]
CMFileManager: change dialog buttons to use dialog_text_color theme

Also remove themed button background for dialog buttons, causes the
dialog buttons to appear too close to each other.

Change-Id: I7059ad3da2b958aeca63d451fbd4cb1a26e792a4
(cherry picked from commit 1ac66923d6169e31eaccc148563f7116de894567)

9 years agoAdd character limit for name input dialog.
Martin Brabham [Thu, 2 Apr 2015 22:42:49 +0000 (15:42 -0700)]
Add character limit for name input dialog.

Change-Id: I75539bbe90dbc278b360e1246c5218101d77abf7
(cherry picked from commit d34dfc6892760eb14a553bd9774a65aa211f6d7b)

9 years agoFix support for USB OTG.
Matt Garnes [Thu, 2 Apr 2015 01:25:45 +0000 (18:25 -0700)]
Fix support for USB OTG.

Properly listen for the Broadcast with an IntentFilter that includes the
path data scheme. Reload the mounted volumes upon ACTION_MEDIA_MOUNTED AND
ACTION_MEDIA_UNMOUNTED.

Change-Id: I71d90978fef05419d912ef2398bf99c23fdefee6
(cherry picked from commit e3922e43c8988c499c85115f1f14bef8c925e1ee)
(cherry picked from commit 8656db649d0a88fc126e468b7ac81d8d3ea091ae)
(cherry picked from commit 860ef9fbf513e1a4267e391453a2021d0ac20f63)

9 years agoCMFileManager: show hamburger icon for the navigation drawer
Raj Yengisetty [Wed, 1 Apr 2015 18:48:49 +0000 (11:48 -0700)]
CMFileManager: show hamburger icon for the navigation drawer

This was broken in 5.1

Change-Id: Ib2ec68a4b9c288855c1b58f7f732bf7ee840c3ec

9 years agoCatch RuntimeException when opening 3gp files for inspection.
Matt Garnes [Wed, 1 Apr 2015 18:38:44 +0000 (11:38 -0700)]
Catch RuntimeException when opening 3gp files for inspection.

When reading metadata from .3gp files, FileManager can crash if the file
is unreadable. MediaMetaDataRetriever.setDataSource() throws
RuntimeException if this happens. Catch it.

Fixes NIGHTLIES-958.

Change-Id: I465f7c961793b468e0469a5844894f3ed56b374c
(cherry picked from commit 4bd0d070f76d5180e6de1d20843bb9c16a782f4c)

9 years agoCMFileManager: change warning drawables used in dialogs for visibility
Raj Yengisetty [Tue, 31 Mar 2015 16:49:39 +0000 (09:49 -0700)]
CMFileManager: change warning drawables used in dialogs for visibility

Change-Id: I5256322a460f8fab268a6f36022aece2bdabd677

9 years agoAutomatic translation import
Michael Bestas [Mon, 30 Mar 2015 22:49:21 +0000 (01:49 +0300)]
Automatic translation import

Change-Id: I761573acfc3cdd1fb7885b1cc173b4dcc113ac87

9 years agoCMFileManager: account for displayed dialogs during activity tear down
Raj Yengisetty [Mon, 30 Mar 2015 17:07:09 +0000 (10:07 -0700)]
CMFileManager: account for displayed dialogs during activity tear down

Repro:
 - Start copying a large file (>100 MB)
 - Leave CMFM and trigger a config change
   (e.g. set text size to small in Settings -> Display)
 - Return to CMFM
 - Observe: window leak in logcat

Change-Id: Ic875d4f86edf0446b889e6442126bd76a692a7c6

9 years agomake sure MountPointInfo and DiskUsageInfo runs in the UI Thread.
André Rivotti Casimiro [Mon, 30 Mar 2015 10:08:06 +0000 (11:08 +0100)]
make sure MountPointInfo and DiskUsageInfo runs in the UI Thread.

At some point the original View was dettached and both mMountPointInfo and mDiskUsageInfo handler's were null which means the Ruannable wasn't executed.

Change-Id: I883af543b19bc644e451109675c241a8c84e5d64
(cherry picked from commit d7558cf8cdbcc377264c3ff1f05e2c202380c97e)

9 years agoSupport ambigous file extension mimetypes.
Matt Garnes [Tue, 24 Mar 2015 00:52:59 +0000 (17:52 -0700)]
Support ambigous file extension mimetypes.

Previously, CMFileManager operated under the assumption that file
extensions map to exactly one mimetype. This is not true in some cases,
such as .3gp files, which can have an audio or video mimetype.

Add support so that in mime_types.properties we can specify a comma
separated list of mimetype info that are matched with a given extension.
If an AmbiguousExtensionHelper subclass implementation is provided for one of these
extensions, this is used to determine the correct mimetype for the file.

Change-Id: Ie73d6ad646692dfeac112ac50c1c6436e6b5559b

9 years agoCMFileManager: Fixed string typo
Zyg0te [Tue, 24 Mar 2015 23:06:14 +0000 (00:06 +0100)]
CMFileManager: Fixed string typo

Change-Id: Ied59603a11be19f10eb11d1ef8b9d3a043f110cc

9 years agoCMFileManager: Changed status string to something more descriptive
Zyg0te [Tue, 24 Mar 2015 22:53:45 +0000 (23:53 +0100)]
CMFileManager: Changed status string to something more descriptive

Currently the status switch doesnt really communicate what its
indicating the status for. If it's supposed to be indicating whether the
partition is mounted or not, the status string should indicate as much.

Change-Id: Ia3a89bb7ef4c603c596777e9cc0f6cae613b990f

9 years agocmfm: reduce banner size and adjust ratio to fit the banner view bounds
Jorge Ruesga [Mon, 23 Mar 2015 23:13:55 +0000 (00:13 +0100)]
cmfm: reduce banner size and adjust ratio to fit the banner view bounds

Change-Id: I46df6cb1c167fac8d7fe5a7b83f572634cfb44f4
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
9 years agocmfm: fix typo in xml drawable
Jorge Ruesga [Mon, 23 Mar 2015 22:58:13 +0000 (23:58 +0100)]
cmfm: fix typo in xml drawable

Change-Id: I414a67eb4fbc022b72eaa6c41b173a12a66a11e8
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
9 years agocmfm: update changelog
Jorge Ruesga [Mon, 23 Mar 2015 21:17:01 +0000 (22:17 +0100)]
cmfm: update changelog

Change-Id: I29dda23c3e30da28288733fb8bb93ba20730ca42
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
9 years agoCMFileManager: Removed copyright portion of about_summary
Zyg0te [Mon, 23 Mar 2015 20:15:37 +0000 (21:15 +0100)]
CMFileManager: Removed copyright portion of about_summary

Change-Id: If794766a6b55a3a289bec5c3a96b9c3cea15588c

9 years agoCMFileManager: Nitpicking on strings
Zyg0te [Sun, 22 Mar 2015 13:37:33 +0000 (14:37 +0100)]
CMFileManager: Nitpicking on strings

Secure Storage password reset is probably better described as a password
change, as you have to submit both the old and new password to perform
the change.

Syntax Highlighting sounds better than just Syntax Highlight, doesnt it?
Change-Id: Ibf28d93c3cf38e4c706687eddd78fa4aebc2038a

9 years agoAutomatic translation import
Michael Bestas [Sun, 22 Mar 2015 18:00:21 +0000 (20:00 +0200)]
Automatic translation import

Change-Id: Id732c533564852b4c13d31fe0fba1c9c984729c3

9 years agoCMFileManager: Fixed positioning of title in editor custom ActionBar layout
Zyg0te [Sun, 22 Mar 2015 13:34:14 +0000 (14:34 +0100)]
CMFileManager: Fixed positioning of title in editor custom ActionBar layout

The title TextView cannot be set left of a view within separate the LinearLayout
containing the ActionBar buttons. Hence we set it to be left of the
LinearLayout itself. This fixes the issue where the long title texts would
cover the ActionBar buttons.

Change-Id: I4f9883bb6aad6f7ceededc35305aa0c25d274acd

9 years agoCMFileManager: Check if intent action is null when applying user defined
Zyg0te [Sun, 22 Mar 2015 13:29:51 +0000 (14:29 +0100)]
CMFileManager: Check if intent action is null when applying user defined
initial directory

This prevents the app from crashing when locking secure storage.

Change-Id: I9169eabae7ee47ac78479dcfc6f03293d98e1c94

9 years agoCMFileManager: set search item icon to fixed width and centerCrop
Raj Yengisetty [Fri, 20 Mar 2015 00:13:51 +0000 (17:13 -0700)]
CMFileManager: set search item icon to fixed width and centerCrop

Change-Id: If89a55a8d1212774709176ae9af7df6f761f9005

9 years agoCMFileManager: set compute folder statistics to true by default
Raj Yengisetty [Tue, 17 Mar 2015 23:42:32 +0000 (16:42 -0700)]
CMFileManager: set compute folder statistics to true by default

Change-Id: Iaf22257a9227722029956094ae06ccf0df524541
(cherry picked from commit 19862d7c51143136c25d03b741156a0fda68c768)

9 years agoCM File Manager - Gracefully handle renaming on case-insensitive filesystems
Rohit Yengisetty [Fri, 6 Mar 2015 00:35:21 +0000 (16:35 -0800)]
CM File Manager - Gracefully handle renaming on case-insensitive filesystems

Add edge case handling to move/copy commands wherein something is being
renamed to a different-cased version of itself.

Ex : renaming 'mydocuments' to 'MyDocuments'

https://jira.cyanogenmod.org/browse/BACON-3074

Change-Id: Id90de5fd083e341371f250c0194f200388cf4941

9 years agocmfm: delete obsolete themes resources
Jorge Ruesga [Thu, 19 Mar 2015 11:45:54 +0000 (12:45 +0100)]
cmfm: delete obsolete themes resources

Change-Id: I3fc24f739b16ab6104a4349f0c8efe0eff790fbd
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
9 years agocmfm: force colorControlNormal to white
Jorge Ruesga [Thu, 19 Mar 2015 11:15:56 +0000 (12:15 +0100)]
cmfm: force colorControlNormal to white

This fixed the color of actionbar controls (like search widget)

Change-Id: I7a78cc7cd6bee262224b1d881b645aaef504be29
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>