forked from upstream-mirrors/OpenTracks
TrackList: swipe to delete.
This commit is contained in:
+5
-1
@@ -75,7 +75,8 @@ public class ConfirmDeleteDialogFragment extends DialogFragment {
|
||||
getActivity(),
|
||||
titleId,
|
||||
getString(messageId),
|
||||
(dialog, which) -> caller.onConfirmDeleteDone(trackIds)
|
||||
(dialog, which) -> caller.onConfirmDeleteDone(trackIds),
|
||||
(dialog, which) -> caller.onConfirmDeleteAbort(trackIds)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -86,6 +87,9 @@ public class ConfirmDeleteDialogFragment extends DialogFragment {
|
||||
*/
|
||||
public interface ConfirmDeleteCaller {
|
||||
|
||||
default void onConfirmDeleteAbort(Track.Id... trackIds) {
|
||||
}
|
||||
|
||||
void onConfirmDeleteDone(Track.Id... trackIds);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user