From 526a7db4ddabacb2749bde84457617f82d174ff0 Mon Sep 17 00:00:00 2001 From: Prashant830 Date: Sun, 7 Aug 2022 19:55:28 +0530 Subject: [PATCH] Fixed Issue No #1198 Does not show client details. --- .../mobilewallet/mifospay/home/BaseHomeContract.java | 2 -- .../mifospay/home/presenter/MainPresenter.java | 3 --- .../mifos/mobilewallet/mifospay/home/ui/MainActivity.java | 8 -------- 3 files changed, 13 deletions(-) diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/BaseHomeContract.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/BaseHomeContract.java index 8ff45ac05..faf1dc5a7 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/BaseHomeContract.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/BaseHomeContract.java @@ -17,8 +17,6 @@ public interface BaseHomeContract { interface BaseHomeView extends BaseView { - - void showClientDetails(Client client); } interface BaseHomePresenter extends BasePresenter { diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/presenter/MainPresenter.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/presenter/MainPresenter.java index 72c8cb262..20a267727 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/presenter/MainPresenter.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/presenter/MainPresenter.java @@ -41,9 +41,6 @@ public void fetchClientDetails() { @Override public void onSuccess(FetchClientData.ResponseValue response) { localRepository.saveClientData(response.getUserDetails()); - if (!response.getUserDetails().getName().equals("")) { - mHomeView.showClientDetails(response.getUserDetails()); - } } @Override diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/ui/MainActivity.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/ui/MainActivity.java index e0ee1a8ce..c881d5d87 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/ui/MainActivity.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/ui/MainActivity.java @@ -92,14 +92,6 @@ public void setPresenter(BaseHomeContract.BaseHomePresenter presenter) { mHomePresenter = presenter; } - @Override - public void showClientDetails(Client client) { -// tvUserName.setText(client.getName()); -// TextDrawable drawable = TextDrawable.builder() -// .buildRound(client.getName().substring(0, 1), R.color.colorPrimary); -// ivUserImage.setImageDrawable(drawable); - } - @Override public void onBackPressed() { Fragment fragment = getSupportFragmentManager()