Skip to content

Commit

Permalink
Fix crash on Oreo
Browse files Browse the repository at this point in the history
Fixes rovo89#420.
See also emilsjolander/StickyListHeaders#477.

Change-Id: I3545ab04f8587233f2e1e2ddd767c37dba40d288
  • Loading branch information
rovo89 authored and martincz committed Jan 18, 2018
1 parent 74d4b17 commit 00b0b76
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.content.res.Resources;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.MenuItemCompat;
Expand Down Expand Up @@ -85,6 +86,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
mModuleUtil.addListener(this);

mListView = (StickyListHeadersListView) v.findViewById(R.id.listModules);
if (Build.VERSION.SDK_INT >= 26) {
mListView.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS);
}
mListView.setAdapter(mAdapter);
mListView.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
Expand Down

0 comments on commit 00b0b76

Please sign in to comment.