Updated dependencies, use SwitchMaterial instead of Switch and fixed enter button not going to next field in assistant
This commit is contained in:
parent
2f4b8ae760
commit
0cb96fa59e
12 changed files with 22 additions and 21 deletions
|
@ -150,10 +150,10 @@ repositories {
|
|||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||
implementation "androidx.media:media:1.1.0"
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
||||
implementation 'androidx.core:core-ktx:1.3.0'
|
||||
implementation 'androidx.core:core-ktx:1.3.1'
|
||||
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
|
||||
implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
|
@ -162,7 +162,7 @@ dependencies {
|
|||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||||
implementation 'com.google.android:flexbox:2.0.0'
|
||||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||||
implementation 'com.google.android.material:material:1.1.0'
|
||||
implementation 'com.google.android.material:material:1.2.0'
|
||||
|
||||
if (firebaseEnabled()) {
|
||||
implementation 'com.google.firebase:firebase-messaging:19.0.1'
|
||||
|
|
|
@ -66,7 +66,7 @@ abstract class AbstractPhoneFragment : Fragment() {
|
|||
}
|
||||
|
||||
protected fun showPhoneNumberInfoDialog() {
|
||||
MaterialAlertDialogBuilder(context)
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(getString(R.string.assistant_phone_number_info_title))
|
||||
.setMessage(
|
||||
getString(R.string.assistant_phone_number_link_info_content) + "\n" +
|
||||
|
|
|
@ -446,7 +446,7 @@ class DetailChatRoomFragment : MasterFragment() {
|
|||
// TODO: hide ephemeral menu if not all participants support the feature
|
||||
|
||||
builder.setCallback(object : MenuBuilder.Callback {
|
||||
override fun onMenuModeChange(menu: MenuBuilder?) {}
|
||||
override fun onMenuModeChange(menu: MenuBuilder) {}
|
||||
|
||||
override fun onMenuItemSelected(menu: MenuBuilder, item: MenuItem): Boolean {
|
||||
return when (item.itemId) {
|
||||
|
|
|
@ -168,7 +168,7 @@ class DialerFragment : Fragment() {
|
|||
}
|
||||
|
||||
private fun displayDebugPopup() {
|
||||
val alertDialog = MaterialAlertDialogBuilder(context)
|
||||
val alertDialog = MaterialAlertDialogBuilder(requireContext())
|
||||
alertDialog.setTitle(getString(R.string.debug_popup_title))
|
||||
if (corePreferences.debugLogs) {
|
||||
alertDialog.setItems(resources.getStringArray(R.array.popup_send_log)) { _, which ->
|
||||
|
|
|
@ -39,6 +39,7 @@ import com.bumptech.glide.load.engine.GlideException
|
|||
import com.bumptech.glide.request.RequestListener
|
||||
import com.bumptech.glide.request.RequestOptions
|
||||
import com.bumptech.glide.request.target.Target
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial
|
||||
import org.linphone.BR
|
||||
import org.linphone.LinphoneApplication.Companion.corePreferences
|
||||
import org.linphone.R
|
||||
|
@ -131,7 +132,7 @@ fun setLayoutToLeftOf(view: View, oldTargetId: Int, newTargetId: Int) {
|
|||
|
||||
@BindingAdapter("onClickToggleSwitch")
|
||||
fun switchSetting(view: View, switchId: Int) {
|
||||
val switch: Switch = view.findViewById(switchId)
|
||||
val switch: SwitchMaterial = view.findViewById(switchId)
|
||||
view.setOnClickListener { switch.isChecked = !switch.isChecked }
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
<com.google.android.material.textfield.TextInputEditText
|
||||
assistantPhoneNumberPrefixValidation="@{true}"
|
||||
android:text="@={viewModel.prefix}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="phone"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -183,7 +183,7 @@
|
|||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:text="@={viewModel.username}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -229,7 +229,7 @@
|
|||
android:gravity="center"
|
||||
android:paddingTop="10dp">
|
||||
|
||||
<Switch
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:checked="@={viewModel.loginWithUsernamePassword}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
assistantUsernameValidation="@{true}"
|
||||
errorMessage="@={viewModel.usernameError}"
|
||||
android:text="@={viewModel.username}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -80,7 +80,7 @@
|
|||
errorMessage="@={viewModel.emailError}"
|
||||
emailConfirmationValidation="@{true}"
|
||||
android:text="@={viewModel.email}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="text|textEmailAddress"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -99,7 +99,7 @@
|
|||
errorMessage="@={viewModel.passwordError}"
|
||||
passwordConfirmationValidation="@{passwordConfirmation}"
|
||||
android:text="@={viewModel.password}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="textPassword"
|
||||
android:background="@color/transparent_color"
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:text="@={viewModel.username}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:text="@={viewModel.password}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="textPassword"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -94,7 +94,7 @@
|
|||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:text="@={viewModel.domain}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="textUri"
|
||||
android:background="@color/transparent_color"
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<com.google.android.material.textfield.TextInputEditText
|
||||
assistantPhoneNumberPrefixValidation="@{true}"
|
||||
android:text="@={viewModel.prefix}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="phone"
|
||||
android:background="@color/transparent_color"
|
||||
|
@ -151,7 +151,7 @@
|
|||
android:gravity="center"
|
||||
android:paddingTop="10dp">
|
||||
|
||||
<Switch
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:checked="@={viewModel.useUsername}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
<com.google.android.material.textfield.TextInputEditText
|
||||
assistantPhoneNumberPrefixValidation="@{true}"
|
||||
android:text="@={viewModel.prefix}"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeOptions="actionNext"
|
||||
android:singleLine="true"
|
||||
android:inputType="phone"
|
||||
android:background="@color/transparent_color"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
android:orientation="vertical"
|
||||
android:gravity="center_vertical|left">
|
||||
|
||||
<Switch
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/setting_switch"
|
||||
android:enabled="@{enabled ?? true}"
|
||||
android:checked="@={checked}"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.72'
|
||||
ext.kotlin_version = '1.4.0'
|
||||
|
||||
repositories {
|
||||
google()
|
||||
|
|
Loading…
Reference in a new issue