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

Commit 86694787 authored by Chuck Liao's avatar Chuck Liao Committed by Automerger Merge Worker
Browse files

Merge "Fix the title not translated when resuming app from overview" into sc-v2-dev am: 622d32cd

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/16130848

Change-Id: Ie2641324fc6c694409a6da91aaa9ecd59d6b62b4
parents 89930efe 622d32cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -74,8 +74,8 @@ public class GridSectionController implements CustomizationSectionController<Gri
            }
        }, /* reload= */ true);

        gridSectionView.setOnClickListener(v -> mSectionNavigationController.navigateTo(
                GridFragment.newInstance(context.getString(R.string.grid_title))));
        gridSectionView.setOnClickListener(
                v -> mSectionNavigationController.navigateTo(new GridFragment()));

        return gridSectionView;
    }
+5 −6
Original line number Diff line number Diff line
@@ -61,12 +61,6 @@ public class GridFragment extends AppbarFragment {
    private static final String KEY_STATE_BOTTOM_ACTION_BAR_VISIBLE =
            "GridFragment.bottomActionBarVisible";

    public static GridFragment newInstance(CharSequence title) {
        GridFragment fragment = new GridFragment();
        fragment.setArguments(AppbarFragment.createArguments(title));
        return fragment;
    }

    private WallpaperInfo mHomeWallpaper;
    private RecyclerView mOptionsContainer;
    private OptionSelectorController<GridOption> mOptionsController;
@@ -165,6 +159,11 @@ public class GridFragment extends AppbarFragment {
        }
    }

    @Override
    public CharSequence getDefaultTitle() {
        return getString(R.string.grid_title);
    }

    @Override
    protected void onBottomActionBarReady(BottomActionBar bottomActionBar) {
        super.onBottomActionBarReady(bottomActionBar);