Browse Source

HomeNotificationViewDTO added shouldSetPrivilegedView

master
Preyea Regmi 5 years ago
parent
commit
0d86fa7662
  1. 13
      app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/model/HomeNotificationViewDTO.java
  2. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/presenter/HomeV2Presenter.java
  3. 1
      app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/view/HomeActivityV2.java

13
app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/model/HomeNotificationViewDTO.java

@ -8,6 +8,7 @@ import com.gmeremit.online.gmeremittance_native.homeV2.presenter.HomeNotificatio
*/
public class HomeNotificationViewDTO {
private boolean shouldShowPrivilegedView;
private String title;
private String messageBody;
private HomeNotificationHandler.HomeNoticeViewTypeEnum noticeViewType;
@ -18,6 +19,7 @@ public class HomeNotificationViewDTO {
this.messageBody = messageBody;
this.noticeViewType = noticeViewType;
this.isFocused=false;
this.shouldShowPrivilegedView=false;
}
public String getTitle() {
@ -32,6 +34,17 @@ public class HomeNotificationViewDTO {
return noticeViewType;
}
public boolean shouldShowPrivilegedView() {
return shouldShowPrivilegedView;
}
public void setShouldShowPrivilegedView(boolean action)
{
shouldShowPrivilegedView=action;
}
/**
* Check if background of notification view needs to be made dimmer
* @return

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/presenter/HomeV2Presenter.java

@ -349,7 +349,7 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt
userInfoModelV2.getRewardPoint(), shouldShowAutoDebitNotice, autoDebitTitle, autoDebitBody, shouldShowKJBankNotice, notificationViewDTO));
//If no notification is generated then we can show privliged Operation View
view.showPrivilegedOperationView(notificationViewDTO == null);
view.showPrivilegedOperationView(notificationViewDTO == null || notificationViewDTO.shouldShowPrivilegedView());
AppUpdateModel androidAppUpdateModel = null;
if (userInfoModelV2.getAppUpdate() != null)

1
app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/view/HomeActivityV2.java

@ -217,7 +217,6 @@ public class HomeActivityV2 extends BaseActivity implements HomeParentViewContra
new Handler().postDelayed(this::openWithdrawScreen, 200);
break;
case R.id.view_about_gme:
startActivity(new Intent(this, AboutGME.class));
break;

Loading…
Cancel
Save