From 7d22d5010940c93f5fd3900cc11fb57ec5ab1de3 Mon Sep 17 00:00:00 2001 From: Thad Hughes Date: Tue, 27 Dec 2011 22:21:45 -0800 Subject: [PATCH] Try to fix crash. --- default.properties | 14 +++++++++++++- .../android/dictionary/DictionaryActivity.java | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) mode change 120000 => 100644 default.properties diff --git a/default.properties b/default.properties deleted file mode 120000 index 82d8917..0000000 --- a/default.properties +++ /dev/null @@ -1 +0,0 @@ -project.properties \ No newline at end of file diff --git a/default.properties b/default.properties new file mode 100644 index 0000000..c1fd41a --- /dev/null +++ b/default.properties @@ -0,0 +1,13 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Indicates whether an apk should be generated for each density. +split.density=false +# Project target. +target=android-8 diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index 4c56e48..84497e5 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -477,7 +477,7 @@ public class DictionaryActivity extends ListActivity { @Override protected void onListItemClick(ListView l, View v, int row, long id) { - if (clickOpensContextMenu) { + if (clickOpensContextMenu && dictRaf != null) { openContextMenu(v); } } -- 2.43.0