-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compliance level #365
Conversation
@@ -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(); |
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.
I think v.requestFocus()
should work fine,
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.
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' |
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.
Also add the change to other variants.
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.
Okay
@@ -190,6 +189,11 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { | |||
break; | |||
case 13: | |||
upgradeToVersion13CreateReasonForDefaultingTable(db); | |||
break; | |||
case 14: |
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.
I think you should add this to 13 because of #367
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.
So, I merge all the Migrations to 13 or Move 13 to 14 and Vice versa
Assert.assertNotNull(monthlyTally); | ||
Assert.assertNotNull(view); |
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.
Whats being tested here?
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.
Replaced
public void testOnBackActivity() { | ||
View view = Mockito.mock(View.class); | ||
activity.onBackActivity(); | ||
Assert.assertNotNull(view); |
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.
Whats being tested here?
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.
Removed
activity.getDrawerLayoutId(); | ||
Assert.assertNotNull(drawerLayout); | ||
} | ||
|
||
@Test | ||
public void testOnRegistrationSaved() { | ||
View view = Mockito.mock(View.class); | ||
activity.onRegistrationSaved(true); | ||
Assert.assertNotNull(view); |
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.
Whats being tested here?
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.
Removed
public void testGetDrawerLayoutIdd() { | ||
DrawerLayout drawerLayout = Mockito.mock(DrawerLayout.class); | ||
activity.getDrawerLayoutId(); | ||
Assert.assertNotNull(drawerLayout); |
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.
Whats being tested here?
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.
Removed
See Issue opensrp/opensrp-client-emmunize-malawi#9