|
|
@@ -41,6 +41,7 @@ import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.IView;
|
|
|
import kr.co.zumo.app.lifeplus.view.IWaiterCallable;
|
|
|
+import kr.co.zumo.app.lifeplus.view.animation.Barrier;
|
|
|
import kr.co.zumo.app.lifeplus.view.animation.LoadingDriver;
|
|
|
import kr.co.zumo.app.lifeplus.view.command.Command;
|
|
|
import kr.co.zumo.app.lifeplus.view.command.EmailSendingCommand;
|
|
|
@@ -358,7 +359,7 @@ public abstract class Presenter<M extends Model, V extends IView> implements ILi
|
|
|
// event detail
|
|
|
// 이벤트 구분 후 전달해야한다.
|
|
|
String eventNo = linkBean.getLink();
|
|
|
- if(StringUtil.isFull(eventNo)) {
|
|
|
+ if (StringUtil.isFull(eventNo)) {
|
|
|
new EventDetailDelegate().loadEvent(eventNo, new EventDetailDelegate.IEventDetailDelegateListener() {
|
|
|
@Override
|
|
|
public void onLoadSuccess(EventDetailBean eventDetailBean, int screenId, EventDeliveryBean eventDeliveryBean) {
|
|
|
@@ -650,6 +651,27 @@ public abstract class Presenter<M extends Model, V extends IView> implements ILi
|
|
|
* listener
|
|
|
***********************************/
|
|
|
// INetworkReceiverListener
|
|
|
+ private Barrier barrier;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 배리어 제거
|
|
|
+ */
|
|
|
+ private void hideBarrier() {
|
|
|
+ if (null != barrier) {
|
|
|
+ barrier.hide();
|
|
|
+ barrier = null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 사용자 터치 입력을 막는 배리어 생성
|
|
|
+ */
|
|
|
+ private void showBarrier() {
|
|
|
+ if (null == barrier) {
|
|
|
+ barrier = new Barrier(view.getActivity()).show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void onChangedConnection(boolean isConnected, int type) {
|
|
|
Log.i("APP# Presenter | onChangedConnection", "| " + this.getClass().getSimpleName() + ", isConnected:" + isConnected);
|
|
|
@@ -659,6 +681,7 @@ public abstract class Presenter<M extends Model, V extends IView> implements ILi
|
|
|
dialogNetwork.dispose();
|
|
|
dialogNetwork = null;
|
|
|
}
|
|
|
+ hideBarrier();
|
|
|
}
|
|
|
else {
|
|
|
if (null == dialogNetwork) {
|
|
|
@@ -671,6 +694,11 @@ public abstract class Presenter<M extends Model, V extends IView> implements ILi
|
|
|
onCommand(new ExitCommand());
|
|
|
}
|
|
|
else {
|
|
|
+ dialogNetwork.dispose();
|
|
|
+ dialogNetwork = null;
|
|
|
+
|
|
|
+ showBarrier();
|
|
|
+
|
|
|
model.checkNetwork();
|
|
|
}
|
|
|
}
|