summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorshenfe <shenfe@codeaurora.org>2016-11-02 15:54:15 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-02 20:03:28 -0700
commita84a43758a1d5ffb8138455a851e2160fb566473 (patch)
tree68f07b7c09ace970511c35991b85649d39c477a9 /src/com/android/gallery3d/ui
parent9699589153d0736cb991467c6771a36c4f7ed591 (diff)
downloadandroid_packages_apps_Gallery2-a84a43758a1d5ffb8138455a851e2160fb566473.tar.gz
android_packages_apps_Gallery2-a84a43758a1d5ffb8138455a851e2160fb566473.tar.bz2
android_packages_apps_Gallery2-a84a43758a1d5ffb8138455a851e2160fb566473.zip
SnapdrgonGallery: Fix app force close because of lack of info.
If lack of info, display null. Change-Id: Ib0974d314825ab81da27f64b7d2af71963ede379 CRs-Fixed: 1062092
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/DialogDetailsView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java
index 04537c49a..efe575445 100644
--- a/src/com/android/gallery3d/ui/DialogDetailsView.java
+++ b/src/com/android/gallery3d/ui/DialogDetailsView.java
@@ -248,10 +248,13 @@ public class DialogDetailsView implements DetailsViewContainer {
Object valueObj = detail.getValue();
// This shouldn't happen, log its key to help us diagnose the problem.
if (valueObj == null) {
- Utils.fail("%s's value is Null",
- DetailsHelper.getDetailsName(context, detail.getKey()));
+// Utils.fail("%s's value is Null",
+// DetailsHelper.getDetailsName(context, detail.getKey()));
+// DetailsHelper.getDetailsName(context, detail.getKey()) is null
+ value = "Null";
+ } else {
+ value = valueObj.toString();
}
- value = valueObj.toString();
}
}
int key = detail.getKey();