Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 760754ec authored by Alex Kershaw's avatar Alex Kershaw
Browse files

Hide the top intent resolver divider when there are tabs

Fixes: 155174577
Test: manual
Change-Id: If35f4902e793767cbd38e1f5770d55c4e7b22872
parent 2133dc6e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1598,6 +1598,7 @@ public class ResolverActivity extends Activity implements
    }

    private void setupProfileTabs() {
        maybeHideDivider();
        TabHost tabHost = findViewById(R.id.profile_tabhost);
        tabHost.setup();
        ViewPager viewPager = findViewById(R.id.profile_pager);
@@ -1646,6 +1647,17 @@ public class ResolverActivity extends Activity implements
        findViewById(R.id.resolver_tab_divider).setVisibility(View.VISIBLE);
    }

    private void maybeHideDivider() {
        if (!isIntentPicker()) {
            return;
        }
        final View divider = findViewById(R.id.divider);
        if (divider == null) {
            return;
        }
        divider.setVisibility(View.GONE);
    }

    /**
     * Callback called when user changes the profile tab.
     * <p>This method is intended to be overridden by subclasses.