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

Commit

Permalink
remove more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
g4rb4g3 committed Apr 1, 2021
1 parent 9d6c6cd commit 3919f44
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class SectionsPagerAdapter extends FragmentPagerAdapter {

@StringRes
public static final int[] TAB_TITLES = new int[]{R.string.tab_abrp_geckoview, R.string.tab_settings, R.string.tab_logs, R.string.tab_information};
public static final int[] TAB_TITLES = new int[]{R.string.tab_settings, R.string.tab_logs, R.string.tab_information};
private final Context mContext;
private final SparseArray<WeakReference<Fragment>> instantiatedFragments = new SparseArray<>();

Expand Down Expand Up @@ -62,14 +62,4 @@ public void destroyItem(final ViewGroup container, final int position, final Obj
instantiatedFragments.remove(position);
super.destroyItem(container, position, object);
}

@Nullable
public Fragment getFragment(final int position) {
final WeakReference<Fragment> wr = instantiatedFragments.get(position);
if (wr != null) {
return wr.get();
} else {
return null;
}
}
}

0 comments on commit 3919f44

Please sign in to comment.