|
|
@@ -3,9 +3,6 @@
|
|
|
*/
|
|
|
package kr.co.zumo.app.lifeplus.view.screen.setting.code;
|
|
|
|
|
|
-import android.support.annotation.Nullable;
|
|
|
-import android.widget.Toast;
|
|
|
-
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.model.verify.Verifier;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
@@ -119,33 +116,21 @@ public class SettingCodePresenter extends Presenter<SettingCodeModel, ISettingCo
|
|
|
- 추천인 이름이 있으면 팝업 (코인 표시)
|
|
|
*/
|
|
|
if (StringUtil.isFull(model.getUpdatedSpecialCodeType())) {
|
|
|
- showCustomToast(
|
|
|
- ResourceUtil.getString(R.string.special_code_confirm_success),
|
|
|
- String.format(ResourceUtil.getString(R.string.special_code_confirm_success_detail), model.getUpdatedSpecialCodeType()),
|
|
|
- 0,
|
|
|
- Toast.LENGTH_LONG
|
|
|
- );
|
|
|
+ showCustomToast(ResourceUtil.getString(R.string.special_code_confirm_success));
|
|
|
|
|
|
model.clearUpdatedSpecialCodeType();
|
|
|
}
|
|
|
|
|
|
- // fixme 추천인 등록 완료 메세지 수정 필요
|
|
|
-
|
|
|
if (StringUtil.isFull(model.getUpdatedRecommendName())) {
|
|
|
- showCustomToast(
|
|
|
- ResourceUtil.getString(R.string.recommend_special_code_confirm_success),
|
|
|
- String.format(ResourceUtil.getString(R.string.recommend_confirm_success_detail), model.getUpdatedRecommendName(), model.getIncreasedCoin()),
|
|
|
- 0,
|
|
|
- Toast.LENGTH_LONG
|
|
|
- );
|
|
|
+ showCustomToast(ResourceUtil.getString(R.string.recommend_special_code_confirm_success));
|
|
|
|
|
|
model.clearUpdatedRecommendName();
|
|
|
model.clearIncreasedCoin();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void showCustomToast(String title, String detail, @Nullable int copyToastFlag, int duration) {
|
|
|
- ToastProvider.showCodeShare(title, detail, copyToastFlag, duration);
|
|
|
+ private void showCustomToast(String title) {
|
|
|
+ ToastProvider.showSimple(title);
|
|
|
}
|
|
|
|
|
|
private void onInvalidCode(int resultIndex) {
|