Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

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.

(cherry picked from commit 847f96e)
  • Loading branch information
rovo89 authored and DVDAndroid committed Jan 18, 2018
1 parent e80b404 commit 0ec3474
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
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 @@ -146,7 +147,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
backgroundList = v.findViewById(R.id.background_list);

mListView = v.findViewById(R.id.listModules);

if (Build.VERSION.SDK_INT >= 26) {
mListView.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS);
}
final SwipeRefreshLayout refreshLayout = v.findViewById(R.id.swiperefreshlayout);
refreshLayout.setColorSchemeColors(XposedApp.getColor(getContext()));
refreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
Expand Down

0 comments on commit 0ec3474

Please sign in to comment.