mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Tick icon in place of number of images selected in custom picker (#5331)
* tick in place of number of images selected in custom picker * fixes tests, dark mode visibility, bold tick icon for better visibility
This commit is contained in:
parent
f69ecde713
commit
0d90ac3c53
6 changed files with 36 additions and 23 deletions
|
|
@ -73,9 +73,10 @@ class CustomSelectorActivityTest {
|
|||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testChangeTitle() {
|
||||
val func = activity.javaClass.getDeclaredMethod("changeTitle", String::class.java)
|
||||
activity.onFolderClick(1, "test", 0)
|
||||
val func = activity.javaClass.getDeclaredMethod("changeTitle", String::class.java, Int::class.java)
|
||||
func.isAccessible = true
|
||||
func.invoke(activity, "test")
|
||||
func.invoke(activity, "test", 0)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -141,6 +142,7 @@ class CustomSelectorActivityTest {
|
|||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testOnSelectedImagesChanged() {
|
||||
activity.onFolderClick(1, "test", 0)
|
||||
activity.onSelectedImagesChanged(ArrayList(), 0)
|
||||
}
|
||||
|
||||
|
|
@ -151,6 +153,7 @@ class CustomSelectorActivityTest {
|
|||
@Throws(Exception::class)
|
||||
fun testOnDone() {
|
||||
activity.onDone()
|
||||
activity.onFolderClick(1, "test", 0)
|
||||
activity.onSelectedImagesChanged(
|
||||
ArrayList(arrayListOf(Image(1, "test", Uri.parse("test"), "test", 1))),
|
||||
1
|
||||
|
|
@ -164,6 +167,7 @@ class CustomSelectorActivityTest {
|
|||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testOnClickNotForUpload() {
|
||||
activity.onFolderClick(1, "test", 0)
|
||||
val method: Method = CustomSelectorActivity::class.java.getDeclaredMethod(
|
||||
"onClickNotForUpload"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue