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

Commit 51819e80 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Dismiss promo when Back button is pressed (1/2)

Bug: 30930004

Test: see http://ag/1432879
Change-Id: I6a477ced7fb4ac53900c04b0d5c70a8f8714745a
parent f639b7c6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -26,4 +26,8 @@ public final class FeatureHighlightHelper {
    public static boolean showHamburgerFeatureHighlight(final FragmentActivity activity) {
        return false;
    }

    public static boolean tryRemoveHighlight(final FragmentActivity activity) {
        return false;
    }
}
+2 −0
Original line number Diff line number Diff line
@@ -1378,6 +1378,8 @@ public class PeopleActivity extends ContactsDrawerActivity implements

        if (mDrawer.isDrawerOpen(GravityCompat.START)) {
            mDrawer.closeDrawer(GravityCompat.START);
        } else if (FeatureHighlightHelper.tryRemoveHighlight(this)) {
            return;
        } else if (mActionBarAdapter.isSelectionMode()) {
            mActionBarAdapter.setSelectionMode(false);
            mAllFragment.displayCheckBoxes(false);