From: Thad Hughes Date: Wed, 28 Dec 2011 06:21:45 +0000 (-0800) Subject: Try to fix crash. X-Git-Url: http://gitweb.fperrin.net/?a=commitdiff_plain;h=7d22d5010940c93f5fd3900cc11fb57ec5ab1de3;hp=2d5c0922c9bf853a648e8e9c3eaf6c8b48e52b3e;p=Dictionary.git Try to fix crash. --- 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); } }