diff options
| author | Doris Liu <tianliu@google.com> | 2012-09-10 15:17:47 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-10 15:31:31 -0700 |
| commit | a9144c8942f68d4a68de63103f590d0f55a95dd4 (patch) | |
| tree | c49792404f099eb413f5491dbfeee5b3e8d76fd2 | |
| parent | 7108c4078436488ede37608c62a6b953b51db835 (diff) | |
| download | android_packages_apps_Gallery2-a9144c8942f68d4a68de63103f590d0f55a95dd4.tar.gz android_packages_apps_Gallery2-a9144c8942f68d4a68de63103f590d0f55a95dd4.tar.bz2 android_packages_apps_Gallery2-a9144c8942f68d4a68de63103f590d0f55a95dd4.zip | |
More logging added for monkey crash
The crash is difficult to repro. So I'm adding more logging here to help figure out what caused the crash next time it happens.
Bug: 6495745
Change-Id: Ib6a47f45e0508bc5def61fdc9f4e4a488b48ad92
| -rw-r--r-- | src/com/android/gallery3d/data/MediaObject.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/data/MediaObject.java b/src/com/android/gallery3d/data/MediaObject.java index 87f567d7a..757515c10 100644 --- a/src/com/android/gallery3d/data/MediaObject.java +++ b/src/com/android/gallery3d/data/MediaObject.java @@ -91,7 +91,9 @@ public abstract class MediaObject { public Uri getContentUri() { String className = getClass().getName(); - throw new UnsupportedOperationException(className); + Log.e(TAG, "Class " + className + "should implement getContentUri."); + Log.e(TAG, "The object was created from path: " + getPath()); + throw new UnsupportedOperationException(); } public Uri getPlayUri() { |
