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