aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/AbstractDialogFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/AbstractDialogFragment.java')
-rw-r--r--main/src/cgeo/geocaching/AbstractDialogFragment.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/AbstractDialogFragment.java b/main/src/cgeo/geocaching/AbstractDialogFragment.java
index 4025347..7e77a14 100644
--- a/main/src/cgeo/geocaching/AbstractDialogFragment.java
+++ b/main/src/cgeo/geocaching/AbstractDialogFragment.java
@@ -42,7 +42,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;
@@ -61,7 +60,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);
}
@@ -265,7 +263,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);
}
}
};
@@ -325,7 +323,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
}
}