|
|
@@ -29,6 +29,7 @@ import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.command.EmailSendingCommand;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.AppReviewDialog;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.CurrentPageShareDialog;
|
|
|
+import kr.co.zumo.app.lifeplus.view.dialog.CustomAlertDialog;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogBase;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogBuilder;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogID;
|
|
|
@@ -192,7 +193,7 @@ public class ContentsPresenter extends Presenter<ContentsModel, IContentsView> {
|
|
|
model.updateLiked();
|
|
|
}
|
|
|
else {
|
|
|
- showErrorDialog(R.string.best_bucket_guest_guide);
|
|
|
+ showPopupForGuest();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -206,7 +207,7 @@ public class ContentsPresenter extends Presenter<ContentsModel, IContentsView> {
|
|
|
model.updateBookmarked();
|
|
|
}
|
|
|
else {
|
|
|
- showErrorDialog(R.string.best_bucket_guest_guide);
|
|
|
+ showPopupForGuest();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -332,4 +333,28 @@ public class ContentsPresenter extends Presenter<ContentsModel, IContentsView> {
|
|
|
toast.setView(view);
|
|
|
toast.show();
|
|
|
}
|
|
|
+
|
|
|
+ private void showPopupForGuest() {
|
|
|
+ // 비회원 가입 유도
|
|
|
+ new DialogBuilder<CustomAlertDialog, ICustomDialogListener>(getFragmentManager(), DialogID.ALERT)
|
|
|
+ .listener(new ICustomDialogListener<CustomAlertDialog>() {
|
|
|
+ @Override
|
|
|
+ public void onDialogResult(CustomAlertDialog dialog, Event event) {
|
|
|
+ if (event.getEventId() == Event.CONFIRM) {
|
|
|
+ dialog.dispose();
|
|
|
+ go(ScreenID.SIGN_UP_START);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDialogCanceled(CustomAlertDialog dialog) {
|
|
|
+ dialog.dispose();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .attribute(dialog -> {
|
|
|
+ dialog.setText(ResourceUtil.getString(R.string.best_bucket_guest_guide));
|
|
|
+ })
|
|
|
+ .show();
|
|
|
+ }
|
|
|
+
|
|
|
}
|