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

Commit 6eeeab62 authored by emancebo's avatar emancebo Committed by Gerrit Code Review
Browse files

Do not disable alarm list when adding new alarm

This fixes a bug where the alarm list cannot be scrolled after adding a new alarm

Change-Id: I8159565ee9d37f289b0944a1a0ee7f881179bc27
parent 2f337a65
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1817,15 +1817,6 @@ public class AlarmClockFragment extends DeskClockFragment implements
        final Context context = AlarmClockFragment.this.getActivity().getApplicationContext();
        final AsyncTask<Void, Void, AlarmInstance> updateTask =
                new AsyncTask<Void, Void, AlarmInstance>() {
                    @Override
                    public synchronized void onPreExecute() {
                        final ListView list = mAlarmsList;
                        // The alarm list needs to be disabled until the animation finishes to prevent
                        // possible concurrency issues.  It becomes re-enabled after the animations have
                        // completed.
                        mAlarmsList.setEnabled(false);
                    }

                    @Override
                    protected AlarmInstance doInBackground(Void... parameters) {
                        if (context != null && alarm != null) {