From 3919f44d789acc576e02b2afa05052ffa804ca9b Mon Sep 17 00:00:00 2001 From: g4rb4g3 Date: Thu, 1 Apr 2021 10:11:11 +0200 Subject: [PATCH] remove more unused stuff --- .../ui/main/SectionsPagerAdapter.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/src/main/java/g4rb4g3/at/abrptransmitter/ui/main/SectionsPagerAdapter.java b/app/src/main/java/g4rb4g3/at/abrptransmitter/ui/main/SectionsPagerAdapter.java index 98b2af9..c79f869 100644 --- a/app/src/main/java/g4rb4g3/at/abrptransmitter/ui/main/SectionsPagerAdapter.java +++ b/app/src/main/java/g4rb4g3/at/abrptransmitter/ui/main/SectionsPagerAdapter.java @@ -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> instantiatedFragments = new SparseArray<>(); @@ -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 wr = instantiatedFragments.get(position); - if (wr != null) { - return wr.get(); - } else { - return null; - } - } } \ No newline at end of file