package com.akexorcist.sleepingforless.config;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.akexorcist.sleepingforless.util.Contextor;
import com.akexorcist.sleepingforless.view.settings.SettingsFragment;

/**
 * Created by Akexorcist on 3/18/2016 AD.
 */
public class SettingsPreference {
    private static final String GCM_TOKEN_PREFERENCE = "gcm_token_preference";
    private static final String KEY_TOKEN_ID = "token_id";

    private static SettingsPreference gcmTokenPreference;

    public static SettingsPreference getInstance() {
        if (gcmTokenPreference == null) {
            gcmTokenPreference = new SettingsPreference();
        }
        return gcmTokenPreference;
    }

    private SharedPreferences getPreference() {
        return PreferenceManager.getDefaultSharedPreferences(Contextor.getContext());
    }

    public boolean isNotificationEnable() {
        return getPreference().getBoolean(SettingsFragment.KEY_PUSH_NOTIFICATION, true);
    }
}

@@ -45,40 +45,8 @@
 g;%0A%0A
-import android.content.Context;%0A
 impo
@@ -342,147 +342,8 @@
 e %7B%0A
-    private static final String GCM_TOKEN_PREFERENCE = %22gcm_token_preference%22;%0A    private static final String KEY_TOKEN_ID = %22token_id%22;%0A%0A
     

Remove unused code