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

Commit 95036f50 authored by Santiago Etchebehere's avatar Santiago Etchebehere Committed by android-build-merger
Browse files

Finish Clock Activity if clocks are not available

am: 95eb1bfb

Change-Id: Ifa36e5d32a28e2810909e4140d609f65a2950ca0
parents 5b1cd2f0 95eb1bfb
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() {