Clicking "More" on tabLayout caused it to be displayed on toolbar (in any other language than English) (#4666)

* Changed hardcoded "More" to getStrings(R.string.more) for Unlogged user
- MainActivity toolbar showed "More" when clicked on More options
   in other language than English

* Changed hardcoded "More" to getStrings(R.string.more) for Logged user
- MainActivity toolbar showed "More" when clicked on More options
   in other language than English

* Added test for: MainActivity.setUpPager
This commit is contained in:
dado1111 2021-10-17 10:24:18 +02:00 committed by GitHub
parent 6978d00926
commit 6649da88a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -210,6 +210,16 @@ class MainActivityUnitTests {
activity.toggleLimitedConnectionMode()
}
@Test
@Throws(Exception::class)
fun testSetUpPager() {
val method: Method = MainActivity::class.java.getDeclaredMethod(
"setUpPager"
)
method.isAccessible = true
method.invoke(activity)
}
@Test
@Throws(Exception::class)
fun testSetUpLoggedOutPager() {