anubhav11march commented on pull request #92: URL: https://github.com/apache/fineract-cn-mobile/pull/92#issuecomment-642873733
> As I see we are creating the same dialog with the same attributes in each activity, would you make the code a little more modular and less line of code, please? You can create a method named something like`showBackConfirmDialog(Activity activity)` in `Utils` class bypassing the `activity` as a parameter to call it's `onBackPressed()` method then simply you can use that method in where you need it. :) I did try that. But then I am facing problem calling the `super.onBackPressed()` method from the Utils class. Any suggestion for a workaround is welcome. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
