File tree Expand file tree Collapse file tree 3 files changed +4
-376
lines changed
java/com/android/internal/app Expand file tree Collapse file tree 3 files changed +4
-376
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16581658 android : excludeFromRecents =" true"
16591659 android : process =" :ui" >
16601660 </activity >
1661- <activity android : name =" com.android.internal.app.RingtonePickerActivity"
1662- android : theme =" @style/Theme.Holo.Dialog.Alert"
1663- android : excludeFromRecents =" true"
1664- android : multiprocess =" true"
1665- android : process =" :ui" >
1666- <intent-filter >
1667- <action android : name =" android.intent.action.RINGTONE_PICKER" />
1668- <category android : name =" android.intent.category.DEFAULT" />
1669- </intent-filter >
1670- </activity >
16711661
16721662 <activity android : name =" android.accounts.ChooseAccountActivity"
16731663 android : excludeFromRecents =" true"
Original file line number Diff line number Diff line change @@ -393,13 +393,13 @@ public Ringtone getRingtone(int position) {
393393 * @return A {@link Uri} pointing to the ringtone.
394394 */
395395 public Uri getRingtoneUri (int position ) {
396- final Cursor cursor = getCursor ();
397-
398- if (! cursor .moveToPosition (position )) {
396+ // use cursor directly instead of requerying it, which could easily
397+ // cause position to shuffle.
398+ if (mCursor == null || ! mCursor .moveToPosition (position )) {
399399 return null ;
400400 }
401401
402- return getUriFromCursor (cursor );
402+ return getUriFromCursor (mCursor );
403403 }
404404
405405 private static Uri getUriFromCursor (Cursor cursor ) {
You can’t perform that action at this time.
0 commit comments