diff options
Diffstat (limited to 'main/src/cgeo/geocaching/AbstractDialogFragment.java')
| -rw-r--r-- | main/src/cgeo/geocaching/AbstractDialogFragment.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/AbstractDialogFragment.java b/main/src/cgeo/geocaching/AbstractDialogFragment.java index 9277d8c..343d97c 100644 --- a/main/src/cgeo/geocaching/AbstractDialogFragment.java +++ b/main/src/cgeo/geocaching/AbstractDialogFragment.java @@ -41,7 +41,6 @@ import android.widget.ImageView; import android.widget.TextView; public abstract class AbstractDialogFragment extends DialogFragment implements CacheMenuHandler.ActivityInterface, PopupMenu.OnMenuItemClickListener, MenuItem.OnMenuItemClickListener { - protected CgeoApplication app = null; protected Resources res = null; protected String geocode; protected CacheDetailsCreator details; @@ -60,7 +59,6 @@ public abstract class AbstractDialogFragment extends DialogFragment implements C public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); res = getResources(); - app = (CgeoApplication) getActivity().getApplication(); setHasOptionsMenu(true); } @@ -264,7 +262,7 @@ public abstract class AbstractDialogFragment extends DialogFragment implements C } onUpdateGeoData(geo); } catch (final RuntimeException e) { - Log.w("Failed to UpdateLocation location."); + Log.w("Failed to update location", e); } } }; @@ -324,7 +322,7 @@ public abstract class AbstractDialogFragment extends DialogFragment implements C try { CacheMenuHandler.onPrepareOptionsMenu(menu, cache); LoggingUI.onPrepareOptionsMenu(menu, cache); - } catch (final RuntimeException e) { + } catch (final RuntimeException ignored) { // nothing } } |
