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

feat:added search feature #24

Merged
merged 1 commit into from
Aug 15, 2018
Merged

Conversation

ivary43
Copy link
Collaborator

@ivary43 ivary43 commented Jul 22, 2018

Fixes #23

Please Add Screenshots If there are any UI changes.
20180722_163958

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@ivary43 ivary43 added enhancement New feature or request gsoc labels Jul 22, 2018

private lateinit var rootView: View
private lateinit var behavior: BottomSheetBehavior<*>
lateinit var accountType: AccountType
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make private

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't because I am using kotlin setter In another fragment.

inner class ViewHolder(itemView: View?) : RecyclerView.ViewHolder(itemView) {

init {
itemView?.setOnClickListener({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move setOnClickListener in onBindVIewHolder

}
}

var cbStatusSelect = itemView?.cb_status_select
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var cbStatusSelect = itemView?.cb_status_select it should be var cbStatusSelect = itemView.cb_status_select

same for others

@@ -68,6 +72,30 @@ class AccountsFragment : MifosBaseFragment(), AccountsContract.View, View.OnClic
val rootView = inflater.inflate(R.layout.fragment_accounts, container, false)
accountsPresenter.attachView(this)

//listen to setting call
DataBus.listen(FilterAccountsEvent.SetStatusModelList::class.java).subscribe({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class name RxBus

}

override fun onClick(v: View?) {
when (v?.id) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't implement onClick, directly use it in onCreateDialog

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@therajanmaurya done in previous PR

* @since 20/July/2018
*/

class FilterAccountsEvent {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make separate RxEvent Class

@ivary43
Copy link
Collaborator Author

ivary43 commented Jul 29, 2018

@therajanmaurya please review.

@@ -138,7 +138,6 @@ class DashboardActivity : MifosBaseActivity(), View.OnClickListener, NavigationV
if (fragment is DashboardFragment) {
setNavigationViewSelectedItem(R.id.item_home)
} else if(fragment is CustomerAccountFragment) {
hideToolbarElevation()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To show the toolbar elevation in accounts section.

@@ -157,7 +156,6 @@ class DashboardActivity : MifosBaseActivity(), View.OnClickListener, NavigationV
replaceFragment(DashboardFragment.newInstance(), true, R.id.container)
}
R.id.item_accounts -> {
hideToolbarElevation()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for toolbar elevation

@therajanmaurya therajanmaurya merged commit bfb9e8b into openMF:master Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gsoc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants