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

Commit 3fd30065 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Fix crash in alarm adapter

Bug: 7360684
Change-Id: Ia328b79bcadb8eedf57e9e15d7f933b7747dce8e
parent 4d312a2e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -427,7 +427,10 @@ public class AlarmClock extends Activity implements LoaderManager.LoaderCallback
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            if (!getCursor().moveToPosition(position)) {
                throw new IllegalStateException("couldn't move cursor to position " + position);
                // May happen if the last alarm was deleted and the cursor refreshed while the
                // list is updated.
                Log.v("couldn't move cursor to position " + position);
                return null;
            }
            View v;
            if (convertView == null) {