From 464fe627a3497139bb3e8ba8c7020e3df55afdbe Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 26 Apr 2017 00:27:55 +0800 Subject: [PATCH] Swap tabs --- app/src/main/java/com/topjohnwu/magisk/LogFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/LogFragment.java b/app/src/main/java/com/topjohnwu/magisk/LogFragment.java index f9c325a4e..eb3793f76 100644 --- a/app/src/main/java/com/topjohnwu/magisk/LogFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/LogFragment.java @@ -31,14 +31,14 @@ public class LogFragment extends Fragment { TabFragmentAdapter adapter = new TabFragmentAdapter(getChildFragmentManager()); - adapter.addTab(new MagiskLogFragment(), getString(R.string.magisk)); - if (getApplication().isSuClient) { adapter.addTab(new SuLogFragment(), getString(R.string.superuser)); tab.setupWithViewPager(viewPager); tab.setVisibility(View.VISIBLE); } + adapter.addTab(new MagiskLogFragment(), getString(R.string.magisk)); + viewPager.setAdapter(adapter); return v;