Created
May 6, 2015 10:17
-
-
Save kmdupr33/7e54aefed4d8b0c2c74b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.samples.apps.iosched.service; | |
import android.content.SharedPreferences; | |
/** | |
* Created by MattDupree on 4/30/15. | |
*/ | |
public class AndroidSessionCalendarUserPreferences implements SessionCalendarUserPreferences { | |
private static final String KEY_SHOULD_SYNC_CAL = "com.google.samples.apps.iosched.KEY_SHOULD_SYNC_CAL"; | |
private SharedPreferences mSharedPreferences; | |
public AndroidSessionCalendarUserPreferences(SharedPreferences sharedPreferences) { | |
mSharedPreferences = sharedPreferences; | |
} | |
@Override | |
public boolean shouldSyncCalendar() { | |
return mSharedPreferences.getBoolean(KEY_SHOULD_SYNC_CAL, false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment