From 847f96e0343c2c07161ecd96508b72a86b8f856c Mon Sep 17 00:00:00 2001 From: rovo89 Date: Sun, 14 Jan 2018 19:56:00 +0100 Subject: [PATCH] Fix crash on Oreo Fixes https://github.com/rovo89/XposedInstaller/issues/420. See also https://github.com/emilsjolander/StickyListHeaders/issues/477. --- .../de/robv/android/xposed/installer/DownloadFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/de/robv/android/xposed/installer/DownloadFragment.java b/app/src/main/java/de/robv/android/xposed/installer/DownloadFragment.java index f9806590b..8f2382737 100644 --- a/app/src/main/java/de/robv/android/xposed/installer/DownloadFragment.java +++ b/app/src/main/java/de/robv/android/xposed/installer/DownloadFragment.java @@ -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; @@ -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