mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Feature/convo capitalised (#1624)
* [SES-2551] capitalising sentences in convos * [SES-2555] Add bg to image loading * Using Robolectric to fix the tests
This commit is contained in:
parent
bc6718e996
commit
f379604c54
10
app/src/main/res/drawable/image_loading_background.xml
Normal file
10
app/src/main/res/drawable/image_loading_background.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="?backgroundSecondary" />
|
||||
|
||||
<corners android:radius="?dialogCornerRadius" />
|
||||
|
||||
</shape>
|
@ -47,7 +47,7 @@
|
||||
android:textAlignment="center"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:inputType="text"
|
||||
android:inputType="textCapWords"
|
||||
android:singleLine="true"
|
||||
android:imeOptions="actionDone"
|
||||
android:maxLength="@integer/max_group_and_community_name_length_chars"
|
||||
|
@ -5,7 +5,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/transparent_black_6">
|
||||
android:background="@drawable/image_loading_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/thumbnail_image"
|
||||
|
@ -37,7 +37,7 @@
|
||||
<org.thoughtcrime.securesms.conversation.v2.input_bar.InputBarEditText
|
||||
android:id="@+id/inputBarEditText"
|
||||
android:contentDescription="@string/AccessibilityId_message_input"
|
||||
android:inputType="textMultiLine"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerInParent="true"
|
||||
|
@ -5,8 +5,9 @@ import org.hamcrest.core.IsEqual.equalTo
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Parameterized
|
||||
import org.robolectric.ParameterizedRobolectricTestRunner
|
||||
|
||||
@RunWith(Parameterized::class)
|
||||
@RunWith(ParameterizedRobolectricTestRunner::class)
|
||||
class SnodeVersionTest(
|
||||
private val v1: String,
|
||||
private val v2: String,
|
||||
@ -15,7 +16,7 @@ class SnodeVersionTest(
|
||||
) {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@Parameterized.Parameters(name = "{index}: testVersion({0},{1}) = (equalTo: {2}, lessThan: {3})")
|
||||
@ParameterizedRobolectricTestRunner.Parameters(name = "{index}: testVersion({0},{1}) = (equalTo: {2}, lessThan: {3})")
|
||||
fun data(): Collection<Array<Any>> = listOf(
|
||||
arrayOf("1", "1", true, false),
|
||||
arrayOf("1", "2", false, true),
|
||||
|
Loading…
Reference in New Issue
Block a user