@@ -0,0 +1,1133 @@
+package org.ccci.gto.android.common.util;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.content.SharedPreferences;%0Aimport android.os.Build;%0Aimport android.support.annotation.NonNull;%0A%0Apublic class SharedPreferencesCompat %7B%0A    private static final Compat COMPAT;%0A    static %7B%0A        if (Build.VERSION.SDK_INT %3C Build.VERSION_CODES.GINGERBREAD) %7B%0A            COMPAT = new FroyoCompat();%0A        %7D else %7B%0A            COMPAT = new GingerbreadCompat();%0A        %7D%0A    %7D%0A%0A    public static void apply(@NonNull final SharedPreferences.Editor prefs) %7B%0A        COMPAT.apply(prefs);%0A    %7D%0A%0A    private interface Compat %7B%0A        void apply(@NonNull SharedPreferences.Editor prefs);%0A    %7D%0A%0A    private static class FroyoCompat implements Compat %7B%0A        @Override%0A        public void apply(@NonNull final SharedPreferences.Editor prefs) %7B%0A            prefs.commit();%0A        %7D%0A    %7D%0A%0A    @TargetApi(Build.VERSION_CODES.GINGERBREAD)%0A    private static class GingerbreadCompat extends FroyoCompat %7B%0A        @Override%0A        public void apply(@NonNull final SharedPreferences.Editor prefs) %7B%0A            prefs.apply();%0A        %7D%0A    %7D%0A%7D%0A

add a SharedPreferenceCompat for apply