-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from rejasupotaro/introduce-kvs-schema
[Proposal] Introduce kvs-schema
- Loading branch information
Showing
8 changed files
with
73 additions
and
123 deletions.
There are no files selected for viewing
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
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
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
27 changes: 27 additions & 0 deletions
27
app/src/main/java/io/github/droidkaigi/confsched/prefs/DefaultPrefsSchema.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.github.droidkaigi.confsched.prefs; | ||
|
||
import android.content.Context; | ||
|
||
import com.rejasupotaro.android.kvs.annotations.Key; | ||
import com.rejasupotaro.android.kvs.annotations.Table; | ||
|
||
@Table("io.github.droidkaigi.confsched_preferences") | ||
public abstract class DefaultPrefsSchema { | ||
@Key("current_language_id") | ||
String languageId; | ||
@Key("notification_setting") | ||
boolean notificationFlag; | ||
@Key("heads_up_setting") | ||
boolean headsUpFlag; | ||
@Key("show_local_time") | ||
boolean showLocalTimeFlag; | ||
|
||
private static DefaultPrefs prefs; | ||
|
||
public static synchronized DefaultPrefs get(Context context) { | ||
if (prefs == null) { | ||
prefs = new DefaultPrefs(context); | ||
} | ||
return prefs; | ||
} | ||
} |
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
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
55 changes: 0 additions & 55 deletions
55
app/src/main/java/io/github/droidkaigi/confsched/util/PrefUtil.java
This file was deleted.
Oops, something went wrong.
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