Преглед изворни кода

[회원가입][New] 구버전 사용자 재 인증 시작

hyodong.min пре 7 година
родитељ
комит
7fdeaceedd

+ 5 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/activity/ActivityBase.java

@@ -73,8 +73,12 @@ public abstract class ActivityBase extends AppCompatActivity {
       else if (SuperModel.getInstance().getPreferences().getTutorialDone() == false) {
         appSetting = new TutorialAppSetting();
       }
-      else if (false) {
+      else if (SuperModel.getInstance().getPreferences().getEncryptionUserNo().equals("") == false) {
         // todo 앱 업데이트 한 사람일 경우
+        /**
+         * 업데이트 인증 시작
+         * - 업데이트 인증 앱 세팅 -> 프래그먼트 -> 프리젠터 ->
+         */
       }
       else if (false) {
         // todo 비회원일 경우

+ 5 - 10
app/src/main/java/kr/co/zumo/app/lifeplus/model/LifeplusPreferences.java

@@ -18,7 +18,7 @@ package kr.co.zumo.app.lifeplus.model;
 public class LifeplusPreferences {
   private BaseSharedPreferences preferences;
 
-  public final static String ENCRYPTION_USER_UID = "encryption_user_uid";
+  public final static String ENCRYPTION_USER_NO = "encryption_user_no";
   //  public final static String ENCRYPTED_PIN = "encrypted_pin";
   public final static String TUTORIAL_DONE = "tutorial_done";
 
@@ -38,16 +38,11 @@ public class LifeplusPreferences {
   }
 
   /**
-   * User 고유 id
-   *
-   * @param uid
+   * 이전 앱 (Zumo) 에서 사용한 User 고유 no
+   * - 앱 업데이트를 한 것인지 확인할 때 이용한다.
    */
-  public void setEncryptionUserUid(String uid) {
-    preferences.put(ENCRYPTION_USER_UID, uid);
-  }
-
-  public String getEncryptionUserUid() {
-    return preferences.get(ENCRYPTION_USER_UID, "");
+  public String getEncryptionUserNo() {
+    return preferences.get(ENCRYPTION_USER_NO, "");
   }
 
   /**