That fuck shit the fascists are using
1package org.tm.archive;
2
3import android.content.Context;
4
5import androidx.annotation.NonNull;
6
7public class MainFragment extends LoggingFragment {
8
9 @Override
10 public void onAttach(@NonNull Context context) {
11 super.onAttach(context);
12
13 if (!(requireActivity() instanceof MainActivity)) {
14 throw new IllegalStateException("Can only be used inside of MainActivity!");
15 }
16 }
17
18 protected @NonNull MainNavigator getNavigator() {
19 return MainNavigator.get(requireActivity());
20 }
21}