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

Compliance level #365

Merged
merged 7 commits into from
Mar 24, 2021
Merged

Compliance level #365

merged 7 commits into from
Mar 24, 2021

Conversation

paulinembabu
Copy link
Contributor

@paulinembabu paulinembabu changed the base branch from master to emmunize_malawi March 15, 2021 13:09
@paulinembabu paulinembabu requested a review from bennsimon March 18, 2021 13:31
@@ -108,6 +124,7 @@ private void bindAutoCompleteText() {
autoCompleteTextView.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
((InputMethodManager) (context).getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
autoCompleteTextView.requestFocus();
Copy link
Member

Choose a reason for hiding this comment

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

I think v.requestFocus() should work fine,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced

@@ -191,7 +191,7 @@ android {
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '100'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "int", "VACCINE_SYNC_TIME", '0'
buildConfigField "int", "DATABASE_VERSION", '13'
buildConfigField "int", "DATABASE_VERSION", '14'
Copy link
Member

Choose a reason for hiding this comment

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

Also add the change to other variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay

@@ -190,6 +189,11 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
break;
case 13:
upgradeToVersion13CreateReasonForDefaultingTable(db);
break;
case 14:
Copy link
Member

Choose a reason for hiding this comment

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

I think you should add this to 13 because of #367

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, I merge all the Migrations to 13 or Move 13 to 14 and Vice versa

Comment on lines 115 to 116
Assert.assertNotNull(monthlyTally);
Assert.assertNotNull(view);
Copy link
Member

Choose a reason for hiding this comment

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

Whats being tested here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced

public void testOnBackActivity() {
View view = Mockito.mock(View.class);
activity.onBackActivity();
Assert.assertNotNull(view);
Copy link
Member

Choose a reason for hiding this comment

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

Whats being tested here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

activity.getDrawerLayoutId();
Assert.assertNotNull(drawerLayout);
}

@Test
public void testOnRegistrationSaved() {
View view = Mockito.mock(View.class);
activity.onRegistrationSaved(true);
Assert.assertNotNull(view);
Copy link
Member

Choose a reason for hiding this comment

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

Whats being tested here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

public void testGetDrawerLayoutIdd() {
DrawerLayout drawerLayout = Mockito.mock(DrawerLayout.class);
activity.getDrawerLayoutId();
Assert.assertNotNull(drawerLayout);
Copy link
Member

Choose a reason for hiding this comment

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

Whats being tested here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@paulinembabu paulinembabu merged commit 59c10e0 into emmunize_malawi Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants