parent
0e7d8c5ed5
commit
b48ae2ac42
|
@ -73,7 +73,7 @@ before_script:
|
||||||
- test -f twidere/src/google/AndroidManifest.xml
|
- test -f twidere/src/google/AndroidManifest.xml
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew clean build
|
- ./gradlew clean assembleGoogle
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- travis/scripts/print_error_logs.sh
|
- travis/scripts/print_error_logs.sh
|
||||||
|
|
|
@ -370,13 +370,11 @@ class QuickSearchBarActivity : BaseActivity(), OnClickListener, LoaderCallbacks<
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun swapCursor(newCursor: Cursor?): Cursor? {
|
override fun swapCursor(newCursor: Cursor?): Cursor? {
|
||||||
indices = if (newCursor != null) SuggestionItem.Indices(newCursor) else null
|
indices = newCursor?.let(SuggestionItem::Indices)
|
||||||
removedPositions!!.clear()
|
|
||||||
return super.swapCursor(newCursor)
|
return super.swapCursor(newCursor)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getCount(): Int {
|
override fun getCount(): Int {
|
||||||
if (removedPositions == null) return super.getCount()
|
|
||||||
return super.getCount() - removedPositions.size()
|
return super.getCount() - removedPositions.size()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue