aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils/BundleUtils.java
blob: 9c4255b879a4dd3951d8def05d554a31ae09bb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
}