Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Fix crash on Oreo
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 committed Jan 14, 2018
1 parent 19523cc commit 847f96e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,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.view.MenuItemCompat;
import android.support.v4.widget.SwipeRefreshLayout;
Expand Down Expand Up @@ -93,6 +94,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 847f96e

Please sign in to comment.