Skip to content
Snippets Groups Projects
Commit 7c8ac8c9 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

AudioUtil: Show toast from main thread

parent 138fe2bb
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,12 @@ public class AudioUtil {
public void run() {
final File newRingtone = AndroidUtil.UriToFile(song.getUri());
if (!newRingtone.exists()) {
Toast.makeText(context.getApplicationContext(),context.getString(R.string.ringtone_error), Toast.LENGTH_SHORT).show();
WorkersKt.runOnMainThread(new Runnable() {
@Override
public void run() {
Toast.makeText(context.getApplicationContext(),context.getString(R.string.ringtone_error), Toast.LENGTH_SHORT).show();
}
});
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment