|
|
@@ -3,6 +3,7 @@ package kr.co.zumo.app.lifeplus.view.screen.contents;
|
|
|
import android.content.Intent;
|
|
|
import android.net.Uri;
|
|
|
import android.os.Handler;
|
|
|
+import android.support.annotation.StringRes;
|
|
|
import android.util.Log;
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
@@ -82,14 +83,12 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
|
|
|
}
|
|
|
else {
|
|
|
// 미가입 그룹 못 봄
|
|
|
- showToast(R.string.unregister_group);
|
|
|
- onBackPressed();
|
|
|
+ exitWithToast(R.string.unregister_group);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
// 비회원 못 봄
|
|
|
- showToast(R.string.unregister_group);
|
|
|
- onBackPressed();
|
|
|
+ exitWithToast(R.string.unregister_group);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -101,11 +100,15 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
|
|
|
}
|
|
|
else {
|
|
|
Log.w("APP# ContentsPresenter | render", "|" + "first item is null........");
|
|
|
- showToast(R.string.undefined_list_type);
|
|
|
- onBackPressed();
|
|
|
+ exitWithToast(R.string.undefined_list_type);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void exitWithToast(@StringRes int stringId) {
|
|
|
+ showToast(stringId);
|
|
|
+ back();
|
|
|
+ }
|
|
|
+
|
|
|
protected void showContents() {
|
|
|
ContentsItemBean contentsItemBean = model.getFirstItem();
|
|
|
String itemType = contentsItemBean.getItemType();
|
|
|
@@ -152,8 +155,7 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
|
|
|
}
|
|
|
else {
|
|
|
Log.w("APP# ContentsPresenter | showContents", "|" + "invalid itemType -> " + itemType);
|
|
|
- showToast(R.string.undefined_list_type);
|
|
|
- onBackPressed();
|
|
|
+ exitWithToast(R.string.undefined_list_type);
|
|
|
}
|
|
|
}
|
|
|
|