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

Commit 95eb1bfb authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Finish Clock Activity if clocks are not available

Bug: 136090066
Change-Id: I032448f445f9d3f965325e90f6dc153b2429229e
parent aa5456ac
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -64,13 +64,17 @@ public class ClockFacePickerActivity extends FragmentActivity implements ClockFr
                return getIntent().getStringExtra(EXTRA_CLOCK_FACE_NAME);
            }
        };

        if (!mClockManager.isAvailable()) {
            finish();
        } else {
            final FragmentManager fm = getSupportFragmentManager();
            final FragmentTransaction fragmentTransaction = fm.beginTransaction();
        final ClockFragment clockFragment = ClockFragment.newInstance(getString(R.string.clock_title));
            final ClockFragment clockFragment = ClockFragment.newInstance(
                    getString(R.string.clock_title));
            fragmentTransaction.replace(R.id.fragment_container, clockFragment);
            fragmentTransaction.commitNow();
        }
    }

    @Override
    public BaseClockManager getClockManager() {