Added email notifications on boolean field
diff --git a/src/com/tmobile/themes/provider/ProfileItem.java b/src/com/tmobile/themes/provider/ProfileItem.java
index 05c69d8..3adfab3 100644
--- a/src/com/tmobile/themes/provider/ProfileItem.java
+++ b/src/com/tmobile/themes/provider/ProfileItem.java
@@ -76,6 +76,7 @@
private int mColumnWallpaperUri;
private int mColumnLockWallpaperUri;
private int mColumnCallFowardingNumber;
+ private int mColumnEmailNotificationsOn;
private int mColumnSceneId;
private int mColumnIsActive;
private int mColumnIsRestrictedScene;
@@ -118,6 +119,7 @@
mColumnWallpaperUri = c.getColumnIndex(ProfileColumns.WALLPAPER_URI);
mColumnLockWallpaperUri = c.getColumnIndex(ProfileColumns.LOCK_WALLPAPER_URI);
mColumnCallFowardingNumber = c.getColumnIndex(ProfileColumns.CALL_FORWARDING_NUMBER);
+ mColumnEmailNotificationsOn = c.getColumnIndex(ProfileColumns.EMAIL_NOTIFICATION_ON);
mColumnSceneId = c.getColumnIndex(ProfileColumns.SCENE_ID);
mColumnIsActive = c.getColumnIndex(ProfileColumns.IS_ACTIVE);
mColumnIsRestrictedScene = c.getColumnIndex(ProfileColumns.IS_RESTRICTED);
@@ -198,8 +200,15 @@
/**
* @return the call forwarding number
*/
- public Uri getCallForwardingNumber() {
- return parseUriNullSafe(mCursor.getString(mColumnCallFowardingNumber));
+ public String getCallForwardingNumber() {
+ return mCursor.getString(mColumnCallFowardingNumber);
+ }
+
+ /**
+ * @return true if email notifications are on
+ */
+ public boolean emailNotificationsOn() {
+ return mCursor.getInt(mColumnEmailNotificationsOn) == 1;
}
/**
diff --git a/src/com/tmobile/themes/provider/Profiles.java b/src/com/tmobile/themes/provider/Profiles.java
index aa5cd66..c7bff6d 100644
--- a/src/com/tmobile/themes/provider/Profiles.java
+++ b/src/com/tmobile/themes/provider/Profiles.java
@@ -175,6 +175,7 @@
public static final String WALLPAPER_URI = "wallpaper_uri";
public static final String LOCK_WALLPAPER_URI = "lock_wallpaper_uri";
public static final String CALL_FORWARDING_NUMBER = "call_forwarding_number";
+ public static final String EMAIL_NOTIFICATION_ON = "email_notification_on";
public static final String SCENE_ID = "scene_id";
public static final String IS_ACTIVE = "is_active";
public static final String IS_RESTRICTED = "is_restricted";