Showing
2 changed files
with
14 additions
and
2 deletions
... | @@ -37,9 +37,9 @@ public class SplashActivity extends BaseActivity { | ... | @@ -37,9 +37,9 @@ public class SplashActivity extends BaseActivity { |
37 | public void onWarplyReady() { | 37 | public void onWarplyReady() { |
38 | if (!WarplyDBHelper.getInstance(SplashActivity.this).isTableNotEmpty("auth")) { | 38 | if (!WarplyDBHelper.getInstance(SplashActivity.this).isTableNotEmpty("auth")) { |
39 | //6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons | 39 | //6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons |
40 | - //prod 6006552990, prod 6005892749, live 3000184910,prod 7000070282 | 40 | + //prod 6006552990, prod 6005892749, live 3000184910,prod 7000070282, live 3000136179 |
41 | WarplyManager.getCosmoteUser("7000000833", mLoginReceiver); | 41 | WarplyManager.getCosmoteUser("7000000833", mLoginReceiver); |
42 | -// WarplyManager.verifyTicket("", "7000000833", mLoginReceiver); | 42 | +// WarplyManager.verifyTicket("", "7000023699", mLoginReceiver); |
43 | } else { | 43 | } else { |
44 | startNextActivity(); | 44 | startNextActivity(); |
45 | } | 45 | } | ... | ... |
... | @@ -149,11 +149,23 @@ public class WarpUtils { | ... | @@ -149,11 +149,23 @@ public class WarpUtils { |
149 | + "trackers_enabled"; | 149 | + "trackers_enabled"; |
150 | private static final String PREFERENCES_KEY_LANGUAGE = PREFERENCES_PREFIX | 150 | private static final String PREFERENCES_KEY_LANGUAGE = PREFERENCES_PREFIX |
151 | + "language"; | 151 | + "language"; |
152 | + private static final String PREFERENCES_KEY_STEPS = PREFERENCES_PREFIX | ||
153 | + + "steps"; | ||
152 | 154 | ||
153 | private static SharedPreferences _prefs; | 155 | private static SharedPreferences _prefs; |
154 | 156 | ||
155 | /* Public methods */ | 157 | /* Public methods */ |
156 | 158 | ||
159 | + public static boolean getIsSteps(Context context) { | ||
160 | + return getPreferences(context).getBoolean(PREFERENCES_KEY_STEPS, false); | ||
161 | + } | ||
162 | + | ||
163 | + public static void setIsSteps(Context context, boolean isSupermarket) { | ||
164 | + SharedPreferences.Editor editor = getPreferences(context).edit(); | ||
165 | + editor.putBoolean(PREFERENCES_KEY_STEPS, isSupermarket); | ||
166 | + editor.apply(); | ||
167 | + } | ||
168 | + | ||
157 | public static String getUserTag(Context context) { | 169 | public static String getUserTag(Context context) { |
158 | return getPreferences(context).getString(PREFERENCES_KEY_USER_TAG, ""); | 170 | return getPreferences(context).getString(PREFERENCES_KEY_USER_TAG, ""); |
159 | } | 171 | } | ... | ... |
-
Please register or login to post a comment