Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate transfer process screen to compose screen #2583 #2585

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import org.mifos.mobile.ui.login.LoginActivity
import org.mifos.mobile.ui.third_party_transfer.ThirdPartyTransferComposeFragment
import org.mifos.mobile.ui.notification.NotificationFragment
import org.mifos.mobile.ui.recent_transactions.RecentTransactionsComposeFragment
import org.mifos.mobile.ui.transfer_process.TransferProcessComposeFragment
import org.mifos.mobile.utils.Constants
import org.mifos.mobile.utils.TextDrawable
import org.mifos.mobile.utils.Toaster
Expand Down Expand Up @@ -386,8 +387,7 @@ class HomeActivity :
doubleBackToExitPressedOnce = true
Toaster.show(findViewById(android.R.id.content), getString(R.string.exit_message))
Handler().postDelayed({ doubleBackToExitPressedOnce = false }, 2000)
} else if (fragment is TransferProcessFragment) {
fragment.cancelTransferProcess()
} else if (fragment is TransferProcessComposeFragment) {
}

if (stackCount() != 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import org.mifos.mobile.core.ui.component.mifosComposeView
import org.mifos.mobile.models.payload.TransferPayload
import org.mifos.mobile.ui.activities.base.BaseActivity
import org.mifos.mobile.ui.enums.TransferType
import org.mifos.mobile.ui.fragments.TransferProcessFragment
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.ui.transfer_process.TransferProcessComposeFragment
import org.mifos.mobile.utils.Constants
import org.mifos.mobile.utils.DateHelper
import org.mifos.mobile.utils.getTodayFormatted
Expand Down Expand Up @@ -71,7 +71,7 @@ class SavingsMakeTransferComposeFragment : BaseFragment() {
}

(activity as BaseActivity?)?.replaceFragment(
TransferProcessFragment.newInstance(transferPayload, TransferType.SELF),
TransferProcessComposeFragment.newInstance(transferPayload, TransferType.SELF),
true,
R.id.container,
)
Expand Down
Loading
Loading