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

Commit 4fb9e0f4 authored by chihhangchuang's avatar chihhangchuang
Browse files

Add new apply flow for custom theme page

Test: Manually
Bug: 151285476
Change-Id: Ie2b23d79a7421fe1be819fc1fa202efbef2a0f3f
parent b9332e66
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -220,7 +220,8 @@ public class CustomThemeActivity extends FragmentActivity implements
        mThemeManager.apply(themeToApply, new Callback() {
            @Override
            public void onSuccess() {
                Toast.makeText(CustomThemeActivity.this, R.string.applied_theme_msg,
                overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
                Toast.makeText(getApplicationContext(), R.string.applied_theme_msg,
                        Toast.LENGTH_LONG).show();
                setResult(RESULT_THEME_APPLIED);
                finish();
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ public class ThemeFragment extends AppbarFragment {
                mSelectedTheme = null;
                reloadOptions();
            } else if (resultCode == CustomThemeActivity.RESULT_THEME_APPLIED) {
                getActivity().finish();
                reloadOptions();
            } else {
                if (mSelectedTheme != null) {
                    mOptionsController.setSelectedOption(mSelectedTheme);