-
Notifications
You must be signed in to change notification settings - Fork 606
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
Fix #990: Adding Reports field and preventing crash #991
Conversation
@therajanmaurya @tarun0 Please review |
b865995
to
ef781fb
Compare
ef781fb
to
52bbb9e
Compare
6c731cf
to
9421675
Compare
6b94301
to
14f2d59
Compare
14f2d59
to
3c2657a
Compare
toolbar.addView(spinner); | ||
intent = new Intent("report"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use any Action like this. From the documentation :
Note that the action must be in a namespace because Intents are used globally in the system -- for example the system VIEW action is android.intent.action.VIEW; an application's custom action would be something like com.google.app.myapp.CUSTOM_ACTION
@@ -60,6 +74,7 @@ public static ClientReportCategoryFragment newInstance() { | |||
public void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
((MifosBaseActivity) getActivity()).getActivityComponent().inject(this); | |||
getActivity().registerReceiver(this.broadCastNewMessage, new IntentFilter("report")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be better to keep this action
too in the Constants file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tarun0 done
<string name="savings_acc_deposit">SavingsAccDeposit</string> | ||
<string name="glaccount">GLAccountNO</string> | ||
<string name="obligation_date_type">Obligation date type</string> | ||
<string name="start_date">Start Date</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please verify if these are already not present. There are chances that these may already be used somewhere. Ignore if they are not present earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tarun0 verified
3c2657a
to
09bbfe2
Compare
09bbfe2
to
8f24fb5
Compare
Aksh Made the changes. I am merging the changes.
Fix #990
Please make sure these boxes are checked before submitting your pull request - thanks!
Apply the
MifosStyle.xml
style template to your code in Android Studio.Run the unit tests with
./gradlew check
to make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.