Avoid some lint warnings
This commit is contained in:
@@ -20,7 +20,7 @@ class ChatsActivity: AppCompatActivity() {
|
|||||||
internal lateinit var listView: ListView
|
internal lateinit var listView: ListView
|
||||||
private lateinit var clAdapter: ChatListAdapter
|
private lateinit var clAdapter: ChatListAdapter
|
||||||
internal lateinit var peerUri: AutoCompleteTextView
|
internal lateinit var peerUri: AutoCompleteTextView
|
||||||
internal lateinit var plusButton: ImageButton
|
private lateinit var plusButton: ImageButton
|
||||||
internal lateinit var aor: String
|
internal lateinit var aor: String
|
||||||
private var scrollPosition = -1
|
private var scrollPosition = -1
|
||||||
|
|
||||||
|
|||||||
@@ -444,7 +444,7 @@ class ConfigActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun bindTitles() {
|
private fun bindTitles() {
|
||||||
binding.AutoStartTitle.setOnClickListener {
|
binding.AutoStartTitle.setOnClickListener {
|
||||||
Utils.alertView(this, getString(R.string.start_automatically),
|
Utils.alertView(this, getString(R.string.start_automatically),
|
||||||
getString(R.string.start_automatically_help))
|
getString(R.string.start_automatically_help))
|
||||||
|
|||||||
@@ -1378,8 +1378,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val input = layout.findViewById(R.id.password) as EditText
|
val input = layout.findViewById(R.id.password) as EditText
|
||||||
input.requestFocus()
|
input.requestFocus()
|
||||||
val context = this
|
val context = this
|
||||||
val builder = AlertDialog.Builder(this, R.style.AlertDialog)
|
with (AlertDialog.Builder(this, R.style.AlertDialog)) {
|
||||||
with(builder) {
|
|
||||||
setView(layout)
|
setView(layout)
|
||||||
setPositiveButton(android.R.string.ok) { dialog, _ ->
|
setPositiveButton(android.R.string.ok) { dialog, _ ->
|
||||||
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
||||||
@@ -1403,7 +1402,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
||||||
dialog.cancel()
|
dialog.cancel()
|
||||||
}
|
}
|
||||||
val dialog = builder.create()
|
val dialog = this.create()
|
||||||
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
dialog.show()
|
dialog.show()
|
||||||
}
|
}
|
||||||
@@ -1427,8 +1426,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val input = layout.findViewById(R.id.password) as EditText
|
val input = layout.findViewById(R.id.password) as EditText
|
||||||
input.requestFocus()
|
input.requestFocus()
|
||||||
val context = this
|
val context = this
|
||||||
val builder = AlertDialog.Builder(this, R.style.AlertDialog)
|
with (AlertDialog.Builder(this, R.style.AlertDialog)) {
|
||||||
with(builder) {
|
|
||||||
setView(layout)
|
setView(layout)
|
||||||
setPositiveButton(android.R.string.ok) { dialog, _ ->
|
setPositiveButton(android.R.string.ok) { dialog, _ ->
|
||||||
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
imm.hideSoftInputFromWindow(input.windowToken, 0)
|
||||||
@@ -1448,7 +1446,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
aorPasswords[aor] = ""
|
aorPasswords[aor] = ""
|
||||||
askPasswords(accounts)
|
askPasswords(accounts)
|
||||||
}
|
}
|
||||||
val dialog = builder.create()
|
val dialog = this.create()
|
||||||
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
dialog.show()
|
dialog.show()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/CardImageAvatar"
|
android:id="@+id/CardImageAvatar"
|
||||||
|
android:contentDescription="@string/avatar_image"
|
||||||
android:layout_height="36dp"
|
android:layout_height="36dp"
|
||||||
android:layout_width="36dp"
|
android:layout_width="36dp"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/ImageAvatar"
|
android:id="@+id/ImageAvatar"
|
||||||
|
android:contentDescription="@string/avatar_image"
|
||||||
android:layout_height="36dp"
|
android:layout_height="36dp"
|
||||||
android:layout_width="36dp"
|
android:layout_width="36dp"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user