diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-10-29 11:56:37 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-10-29 11:56:37 -0700 |
commit | 33819318f61224cdda45e5e9a70dc9cdb9f33911 (patch) | |
tree | c7abab79129737ff9867bdc184405ff0b46a10ed /packages/DocumentsUI | |
parent | 5d321d472d9983db52610393e6506e2b2d2da4bf (diff) | |
download | frameworks_base-33819318f61224cdda45e5e9a70dc9cdb9f33911.zip frameworks_base-33819318f61224cdda45e5e9a70dc9cdb9f33911.tar.gz frameworks_base-33819318f61224cdda45e5e9a70dc9cdb9f33911.tar.bz2 |
Suppress OperationCanceledException logging.
These exceptions are normal when an app has cancelled an outstanding
thumbnail request.
Bug: 11385378
Change-Id: I8aed5721b447cda5baf447ac7afd627aa1062863
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java index 775720e..b2b2bd8 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java +++ b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java @@ -47,6 +47,7 @@ import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.CancellationSignal; +import android.os.OperationCanceledException; import android.os.Parcelable; import android.provider.DocumentsContract; import android.provider.DocumentsContract.Document; @@ -1028,7 +1029,9 @@ public class DirectoryFragment extends Fragment { thumbs.put(mUri, result); } } catch (Exception e) { - Log.w(TAG, "Failed to load thumbnail for " + mUri + ": " + e); + if (!(e instanceof OperationCanceledException)) { + Log.w(TAG, "Failed to load thumbnail for " + mUri + ": " + e); + } } finally { ContentProviderClient.releaseQuietly(client); } |