浏览代码

[알림][Common] 액티비티로 변경

Hasemi 7 年之前
父节点
当前提交
a6b1b577fe

+ 7 - 0
app/src/main/AndroidManifest.xml

@@ -52,6 +52,13 @@
       android:windowSoftInputMode="adjustResize">
     </activity>
 
+    <activity
+      android:name=".lifeplus.activity.NotiActivity"
+      android:launchMode="singleTask"
+      android:screenOrientation="portrait"
+      android:windowSoftInputMode="adjustResize">
+    </activity>
+
     <activity
       android:name=".lifeplus.activity.MenuActivity"
       android:screenOrientation="portrait"

+ 38 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/activity/NotiActivity.java

@@ -0,0 +1,38 @@
+package kr.co.zumo.app.lifeplus.activity;
+
+import android.content.Intent;
+
+import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
+
+/**
+ * NotiActivity
+ * <pre>
+ * </pre>
+ *
+ * @author 하세미
+ * @version 1.0
+ * @history 하세미   [2018-12-12]   [최초 작성]
+ * @since 2018-12-12
+ */
+public class NotiActivity extends ActivityBaseScreen {
+
+  @Override
+  protected void render() {
+    launchScreen(ScreenID.NOTIFICATION);
+  }
+
+  @Override
+  protected void onAfterDestroy() {
+
+  }
+
+  @Override
+  protected void onBeforeDestroy() {
+
+  }
+
+  @Override
+  protected void onAfterNewIntent(Intent intent) {
+
+  }
+}

+ 4 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/supervisor/screen/ActivityScreen.java

@@ -15,6 +15,7 @@ import kr.co.zumo.app.lifeplus.activity.CoopActivity;
 import kr.co.zumo.app.lifeplus.activity.FAQActivity;
 import kr.co.zumo.app.lifeplus.activity.MenuActivity;
 import kr.co.zumo.app.lifeplus.activity.MyCoinActivity;
+import kr.co.zumo.app.lifeplus.activity.NotiActivity;
 import kr.co.zumo.app.lifeplus.activity.SignUpActivity;
 import kr.co.zumo.app.lifeplus.bean.CategoryDeliveryBean;
 import kr.co.zumo.app.lifeplus.bean.ContentsDeliveryBean;
@@ -67,6 +68,9 @@ public class ActivityScreen extends Screen {
         intent = new Intent(activity, ContentsWebActivity.class);
         setContentsPackage();
         break;
+      case ScreenID.NOTIFICATION:
+        intent = new Intent(activity, NotiActivity.class);
+        break;
       case ScreenID.FAQ:
         intent = new Intent(activity, FAQActivity.class);
         break;

+ 3 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/supervisor/screen/ScreenManager.java

@@ -58,6 +58,9 @@ public class ScreenManager implements IScreen {
         case ScreenID.MY_COIN_MAIN:
           screen = new ActivityScreen(helper, id, direction, method);
           break;
+        case ScreenID.NOTIFICATION:
+          screen = new ActivityScreen(helper, id, direction, method);
+          break;
         case ScreenID.MAIN:
           new CommandInvoker().invoke(helper.getPresenter(), new HomeCommand());
           break;