|
|
@@ -27,6 +27,7 @@ import kr.co.zumo.app.lifeplus.view.DoubleChecker;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.command.WebCommand;
|
|
|
+import kr.co.zumo.app.lifeplus.view.dialog.AlertDialog;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.ConfirmDialog;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogBuilder;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogID;
|
|
|
@@ -83,12 +84,15 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
|
|
|
}
|
|
|
else {
|
|
|
// 미가입 그룹 못 봄
|
|
|
- exitWithToast(R.string.unregister_group);
|
|
|
+ // exitWithToast(R.string.unregister_group);
|
|
|
+ // TODO: 커스텀 디자인 얼럿 띄우기
|
|
|
+ showAccessRightDialog();
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
// 비회원 못 봄
|
|
|
- exitWithToast(R.string.unregister_group);
|
|
|
+ //exitWithToast(R.string.unregister_group);
|
|
|
+ showAccessRightDialog();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -625,4 +629,29 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
|
|
|
super.onNavigationClickHome(navigationBar);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ private void showAccessRightDialog() {
|
|
|
+ new DialogBuilder<AlertDialog, ICustomDialogListener>(getFragmentManager(), DialogID.ALERT)
|
|
|
+ .listener(new ICustomDialogListener<AlertDialog>() {
|
|
|
+ @Override
|
|
|
+ public void onDialogResult(AlertDialog dialog, Event event) {
|
|
|
+ back();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDialogCanceled(AlertDialog dialog) {
|
|
|
+ dialog.dispose();
|
|
|
+ back();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .attribute(new IAttribute<AlertDialog>() {
|
|
|
+ @Override
|
|
|
+ public void onAttribute(AlertDialog dialog) {
|
|
|
+ dialog.isTransparent(true);
|
|
|
+ dialog.setCancelable(false);
|
|
|
+ dialog.setText(R.string.access_right_message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .show();
|
|
|
+ }
|
|
|
}
|