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

Commit 28a6c7b5 authored by Rajni Negi's avatar Rajni Negi Committed by Mattias Nilsson
Browse files

Ringtone picker to handle RESULT_CANCELED from Add ringtone

When a user backs out of the "Add ringtone" menu no ringtone is
shown as selected.
   This change fixes this issue by handling RESULT_CANCELED code
from the activity for "+ Add ringtone" to show the list properly.

Bug: 176465037
Change-Id: I4cc4b4c01477e173c766b67167c0e249a6d55bbf
parent ec12e1cd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -300,6 +300,8 @@ public final class RingtonePickerActivity extends AlertActivity implements
                }
            };
            installTask.execute(data.getData());
        } else if (requestCode == ADD_FILE_REQUEST_CODE && resultCode == RESULT_CANCELED) {
            setupAlert();
        }
    }