MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / run

Method run

android/src/SoundUtil.java:62–76  ·  view source on GitHub ↗
(final MediaPlayer mp)

Source from the content-addressed store, hash-verified

60 }
61
62 private static boolean run(final MediaPlayer mp) {
63 if (mp == null) {
64 return false;
65 }
66
67 mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
68 @Override
69 public void onCompletion(MediaPlayer mediaPlayer) {
70 mp.release();
71 }
72 });
73
74 mp.start();
75 return true;
76 }
77}

Callers 2

playMethod · 0.95
playExternalMethod · 0.95

Calls 1

startMethod · 0.80

Tested by

no test coverage detected