// Path: app/src/main/java/com/referendum/uoctubre/UOctubreApplication.java
// public class UOctubreApplication extends Application {
// 
//     private static UOctubreApplication sInstance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         sInstance = this;
// 
//         Fabric.with(this, new Crashlytics());
// 
//         StringsManager.initialize();
// 
//         TwitterConfig config = new TwitterConfig.Builder(this)
//                 .logger(new DefaultLogger(Log.DEBUG))
//                 .twitterAuthConfig(new TwitterAuthConfig(Constants.TWITTER_CONSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET))
//                 .debug(true)
//                 .build();
//         Twitter.initialize(config);
// 
//         //Create Notification channel in Android O
//         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//             NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
//             if (notificationManager != null) {
//                 NotificationChannel mChannel = new NotificationChannel("referendum",
//                         StringsManager.getString("notification_channel_name"), NotificationManager.IMPORTANCE_HIGH);
//                 mChannel.setDescription(StringsManager.getString("notification_channel_description"));
//                 mChannel.enableLights(true);
//                 mChannel.setLightColor(Color.RED);
//                 notificationManager.createNotificationChannel(mChannel);
//             }
//         }
//     }
// 
//     public static UOctubreApplication getInstance() {
//         return sInstance;
//     }
// }


import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.referendum.uoctubre.UOctubreApplication;
import java.util.HashSet;
import java.util.Set;
/*
 * Copyright (c) 2017 Tadaima.cat. All rights reserved.
 */

package com.referendum.uoctubre.utils;




public class SharedPreferencesUtils {
    public static final String USER_HASHTAGS = "user_hashtags";
    public static final String APP_LANGUAGE = "app_language";
    public static final String NUMBER_OF_EXECUTIONS = "number_of_executions";
    public static final String HAS_RATED = "has_rated";

    public static String getString(String key, String defaultValue) {
// Path: app/src/main/java/com/referendum/uoctubre/UOctubreApplication.java
// public class UOctubreApplication extends Application {
// 
//     private static UOctubreApplication sInstance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         sInstance = this;
// 
//         Fabric.with(this, new Crashlytics());
// 
//         StringsManager.initialize();
// 
//         TwitterConfig config = new TwitterConfig.Builder(this)
//                 .logger(new DefaultLogger(Log.DEBUG))
//                 .twitterAuthConfig(new TwitterAuthConfig(Constants.TWITTER_CONSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET))
//                 .debug(true)
//                 .build();
//         Twitter.initialize(config);
// 
//         //Create Notification channel in Android O
//         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//             NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
//             if (notificationManager != null) {
//                 NotificationChannel mChannel = new NotificationChannel("referendum",
//                         StringsManager.getString("notification_channel_name"), NotificationManager.IMPORTANCE_HIGH);
//                 mChannel.setDescription(StringsManager.getString("notification_channel_description"));
//                 mChannel.enableLights(true);
//                 mChannel.setLightColor(Color.RED);
//                 notificationManager.createNotificationChannel(mChannel);
//             }
//         }
//     }
// 
//     public static UOctubreApplication getInstance() {
//         return sInstance;
//     }
// }


// Path: app/src/main/java/com/referendum/uoctubre/utils/SharedPreferencesUtils.java
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.referendum.uoctubre.UOctubreApplication;
import java.util.HashSet;
import java.util.Set;

/*
 * Copyright (c) 2017 Tadaima.cat. All rights reserved.
 */

package com.referendum.uoctubre.utils;




public class SharedPreferencesUtils {
    public static final String USER_HASHTAGS = "user_hashtags";
    public static final String APP_LANGUAGE = "app_language";
    public static final String NUMBER_OF_EXECUTIONS = "number_of_executions";
    public static final String HAS_RATED = "has_rated";

    public static String getString(String key, String defaultValue) {
        SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(UOctubreApplication.getInstance());