diff options
| author | rsudev <rasch@munin-soft.de> | 2014-04-07 22:27:55 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2014-04-07 22:27:55 +0200 |
| commit | 0c407b7982e9f018853812731d69dc90f32358a2 (patch) | |
| tree | c09d1baef168392afd2a90cd53b31dd3943cf8bd /main/src/cgeo/geocaching/utils | |
| parent | 3958777a5cf254ac2bfbb5cb569cfbd42abfb49f (diff) | |
| download | cgeo-0c407b7982e9f018853812731d69dc90f32358a2.zip cgeo-0c407b7982e9f018853812731d69dc90f32358a2.tar.gz cgeo-0c407b7982e9f018853812731d69dc90f32358a2.tar.bz2 | |
Refactoring opencaching implementation
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
| -rw-r--r-- | main/src/cgeo/geocaching/utils/BundleUtils.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/utils/BundleUtils.java b/main/src/cgeo/geocaching/utils/BundleUtils.java new file mode 100644 index 0000000..9c4255b --- /dev/null +++ b/main/src/cgeo/geocaching/utils/BundleUtils.java @@ -0,0 +1,17 @@ +package cgeo.geocaching.utils; + +import org.eclipse.jdt.annotation.NonNull; + +import android.os.Bundle; + +public class BundleUtils { + + @NonNull + public static String getString(Bundle bundle, @NonNull String key, @NonNull String defaultValue) { + String res = bundle.getString(key); + if (res != null) { + return res; + } + return defaultValue; + } +} |
