@@ -82,18 +82,16 @@ public class EditListFragment extends Fragment implements MatchList.ListChangeLi
82
82
private static final int MAX_RULES_BEFORE_WARNING = 5000 ;
83
83
private static final String TAG = "EditListFragment" ;
84
84
private static final String LIST_TYPE_ARG = "list_type" ;
85
- private static final String FITS_SYSTEM_WINDOWS_ARG = "fits_system_windows" ;
86
85
87
86
private final ActivityResultLauncher <Intent > exportLauncher =
88
87
registerForActivityResult (new ActivityResultContracts .StartActivityForResult (), this ::exportResult );
89
88
private final ActivityResultLauncher <Intent > importLauncher =
90
89
registerForActivityResult (new ActivityResultContracts .StartActivityForResult (), this ::importResult );
91
90
92
- public static EditListFragment newInstance (ListInfo .Type list , boolean fitsSystemWindows ) {
91
+ public static EditListFragment newInstance (ListInfo .Type list ) {
93
92
EditListFragment fragment = new EditListFragment ();
94
93
Bundle args = new Bundle ();
95
94
args .putSerializable (LIST_TYPE_ARG , list );
96
- args .putSerializable (FITS_SYSTEM_WINDOWS_ARG , fitsSystemWindows );
97
95
98
96
fragment .setArguments (args );
99
97
return fragment ;
@@ -110,10 +108,10 @@ public View onCreateView(LayoutInflater inflater,
110
108
public void onViewCreated (@ NonNull View view , @ Nullable Bundle savedInstanceState ) {
111
109
mListView = view .findViewById (R .id .listview );
112
110
mEmptyText = view .findViewById (R .id .list_empty );
111
+ view .findViewById (R .id .simple_list ).setFitsSystemWindows (true );
113
112
114
113
assert getArguments () != null ;
115
114
mListInfo = new ListInfo (Utils .getSerializable (getArguments (), LIST_TYPE_ARG , ListInfo .Type .class ));
116
- boolean fitsSystemWindows = Boolean .TRUE .equals (Utils .getSerializable (getArguments (), FITS_SYSTEM_WINDOWS_ARG , Boolean .class ));
117
115
mList = mListInfo .getList ();
118
116
mList .addListChangeListener (this );
119
117
@@ -175,11 +173,6 @@ public void onDestroyActionMode(ActionMode mode) {
175
173
}
176
174
});
177
175
178
- if (fitsSystemWindows )
179
- mListView .setFitsSystemWindows (true );
180
- else
181
- Utils .fixListviewInsetsBottom (mListView );
182
-
183
176
mAdapter .reload (mList .iterRules ());
184
177
recheckListSize ();
185
178
}
0 commit comments