Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Mifos Passcode dependancy added and refactor Kotlin code accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
miPlodder authored and therajanmaurya committed Jun 12, 2019
1 parent 7577dfa commit 18b7659
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ dependencies {
//Material Stepper UI library
implementation "com.stepstone.stepper:material-stepper:$materialStepperVersion"

implementation "com.mifos.mobile:mifos-passcode:$mifosPasscodeVersion"

// Instrumentation test dependencies
androidTestImplementation jUnit
androidTestImplementation mockito
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ class AccountsFragment : FineractBaseFragment(), AccountContract.View, SwipeRefr
}


override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater?.inflate(R.menu.menu_account_search, menu)
inflater.inflate(R.menu.menu_account_search, menu)
setUpSearchInterface(menu)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ class LedgerFragment : FineractBaseFragment(), LedgerContract.View,
R.drawable.ic_person_outline_black_24dp)
}

override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater?.inflate(R.menu.menu_ledger_search, menu)
inflater.inflate(R.menu.menu_ledger_search, menu)
setUpSearchInterface(menu)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EditPayrollAllocationFragment : FineractBaseFragment(), Step,
}
}

override fun onAttach(context: Context?) {
override fun onAttach(context: Context) {
super.onAttach(context)
if (context is OnNavigationBarListener.Payroll) {
listener = context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class EditPayrollFragment : FineractBaseFragment(), Step {
const val DATE_FORMAT = "dd MMM yyyy"
}

override fun onAttach(context: Context?) {
override fun onAttach(context: Context) {
super.onAttach(context)
if (context is OnNavigationBarListener.Payroll) {
listener = context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ class AddLoanReviewFragment : FineractBaseFragment(), Step {
@Inject
lateinit var debtCoSignerAdapter: LoanDebtIncomeAdapter

override fun onAttach(context: Context?) {
override fun onAttach(context: Context) {
super.onAttach(context)
if (context is OnNavigationBarListener.ReviewLoan) {
onNavigationBarListener = context
} else {
throw RuntimeException(context!!.toString() + " must implement OnNavigationBarListener.ReviewLoan")
throw RuntimeException("$context must implement OnNavigationBarListener.ReviewLoan")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ class TellerFragment : FineractBaseFragment(), TellerContract.View, SwipeRefresh
R.drawable.ic_person_outline_black_24dp)
}

override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater?.inflate(R.menu.menu_teller_search, menu)
inflater.inflate(R.menu.menu_teller_search, menu)
setUpSearchInterface(menu)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class ProductFragment : FineractBaseFragment(), ProductContract.View,
}


override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater?.inflate(R.menu.menu_product_search, menu)
inflater.inflate(R.menu.menu_product_search, menu)
setUpSearchInterface(menu)
}

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ ext {
roboElectricVersion = '3.1'
circleImageviewVersion = '2.1.0'
compressorVersion = '2.1.0'
mifosPasscodeVersion = '1.0.0'
}

0 comments on commit 18b7659

Please sign in to comment.