Suppressed unused parameter and deprecation warnings.
This commit is contained in:
parent
1dcd8711dc
commit
749ae6bf2b
3 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
||||||
if (Build.VERSION.SDK_INT >= 24) {
|
if (Build.VERSION.SDK_INT >= 24) {
|
||||||
return Html.fromHtml(s, Html.FROM_HTML_MODE_LEGACY)
|
return Html.fromHtml(s, Html.FROM_HTML_MODE_LEGACY)
|
||||||
} else {
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
return Html.fromHtml(s)
|
return Html.fromHtml(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -224,6 +225,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
setOnEditorActionListener { v, id, event ->
|
setOnEditorActionListener { v, id, event ->
|
||||||
if (id == EditorInfo.IME_ACTION_DONE) {
|
if (id == EditorInfo.IME_ACTION_DONE) {
|
||||||
clearFocus()
|
clearFocus()
|
||||||
|
@ -257,6 +259,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
||||||
adapter = ArrayAdapter<String>(this@MainActivity, android.R.layout.simple_list_item_1, titles)
|
adapter = ArrayAdapter<String>(this@MainActivity, android.R.layout.simple_list_item_1, titles)
|
||||||
isTextFilterEnabled = true
|
isTextFilterEnabled = true
|
||||||
isScrollbarFadingEnabled = false
|
isScrollbarFadingEnabled = false
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
onItemClickListener = AdapterView.OnItemClickListener { parent, v, position, id ->
|
onItemClickListener = AdapterView.OnItemClickListener { parent, v, position, id ->
|
||||||
if (validateFields(fields)) {
|
if (validateFields(fields)) {
|
||||||
saveConfig()
|
saveConfig()
|
||||||
|
@ -306,11 +309,13 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
||||||
dialogInterface.dismiss()
|
dialogInterface.dismiss()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
alert.setNegativeButton(android.R.string.cancel,
|
alert.setNegativeButton(android.R.string.cancel,
|
||||||
{ dialogInterface, i ->
|
{ dialogInterface, i ->
|
||||||
dialogInterface.dismiss()
|
dialogInterface.dismiss()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
alert.setNeutralButton(R.string.dialog_import,
|
alert.setNeutralButton(R.string.dialog_import,
|
||||||
{ dialogInterface, i ->
|
{ dialogInterface, i ->
|
||||||
dialogInterface.dismiss()
|
dialogInterface.dismiss()
|
||||||
|
|
|
@ -143,6 +143,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
||||||
|
|
||||||
if (!it.hasNext()) {
|
if (!it.hasNext()) {
|
||||||
imeOptions = EditorInfo.IME_ACTION_DONE
|
imeOptions = EditorInfo.IME_ACTION_DONE
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
setOnEditorActionListener { v, id, event ->
|
setOnEditorActionListener { v, id, event ->
|
||||||
if (id == EditorInfo.IME_ACTION_DONE) {
|
if (id == EditorInfo.IME_ACTION_DONE) {
|
||||||
clearFocus()
|
clearFocus()
|
||||||
|
|
|
@ -189,6 +189,7 @@ class Dtmf {
|
||||||
fun mock(option: Option, blank: String): String {
|
fun mock(option: Option, blank: String): String {
|
||||||
val replace = arrayListOf(Pair(DTMF_MASTER, blank))
|
val replace = arrayListOf(Pair(DTMF_MASTER, blank))
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
option.fields.forEachIndexed { i, field ->
|
option.fields.forEachIndexed { i, field ->
|
||||||
replace.add(Pair(DTMF_FIELD.format(i + 1), blank))
|
replace.add(Pair(DTMF_FIELD.format(i + 1), blank))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue