mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-30 22:34:02 +01:00
Migrated Profile Package from Butterknife to View Binding (#5591)
* Butterknife to ViewBinding * code fix to pass all tests * code cleanup and tests migrated to binding * fix LoD
This commit is contained in:
parent
dbe739e755
commit
6ed5deac65
7 changed files with 78 additions and 100 deletions
|
|
@ -109,7 +109,7 @@ class ProfileActivityTest {
|
|||
}
|
||||
@Test
|
||||
fun testToolbarNotNull() {
|
||||
val toolbar = activity.findViewById<Toolbar>(R.id.toolbar)
|
||||
val toolbar = activity.binding.toolbarBinding.toolbar
|
||||
Assert.assertNotNull(toolbar)
|
||||
}
|
||||
|
||||
|
|
@ -120,4 +120,4 @@ class ProfileActivityTest {
|
|||
Assert.assertEquals(1, menu.size())
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue