Skip to content

Commit

Permalink
Use stableInset
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Dec 29, 2022
1 parent f0660da commit e7ecbe6
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
android:versionCode="309"
android:versionCode="310"
android:versionName="1.5.15">

<uses-feature android:glEsVersion="0x00020000" android:required="true" />
Original file line number Diff line number Diff line change
@@ -17,9 +17,9 @@ import kotlin.math.max

class EdgeInsets(val left: Int = 0, val top: Int = 0, val right: Int = 0, val bottom: Int = 0) {
constructor(insets: WindowInsetsCompat?) : this(
insets?.systemWindowInsetLeft ?: 0,
insets?.systemWindowInsetTop ?: 0,
insets?.systemWindowInsetRight ?: 0,
insets?.stableInsetLeft ?: 0,
insets?.stableInsetTop ?: 0,
insets?.stableInsetRight ?: 0,
insets?.stableInsetBottom ?: 0)

constructor(edgeInsets: EdgeInsets, roundedCorners: RoundedCorners, configuration: Configuration) : this(
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ class GoToSuggestionAdapter(context: Context, textViewResourceId: Int, private v
}

override fun publishResults(constraint: CharSequence?, results: FilterResults?) {
@Suppress("UNCHECKED_CAST")
resultList = results?.values as? List<String> ?: listOf()
if (resultList.size > 0) {
notifyDataSetChanged()

0 comments on commit e7ecbe6

Please sign in to comment.