Skip to content

Commit 09a2857

Browse files
authored
Merge pull request bkdev98#19 from aguedob/master
Prepare MediaPlayer after stopping it
2 parents 1fa3bd6 + 397779f commit 09a2857

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/src/main/java/com/incomingcall/UnlockScreenActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public void onClick(View view) {
9999
try {
100100
v.cancel();
101101
player.stop();
102+
player.prepareAsync();
102103
acceptDialing();
103104
} catch (Exception e) {
104105
WritableMap params = Arguments.createMap();
@@ -115,6 +116,7 @@ public void onClick(View view) {
115116
public void onClick(View view) {
116117
v.cancel();
117118
player.stop();
119+
player.prepareAsync();
118120
dismissDialing();
119121
}
120122
});
@@ -129,6 +131,7 @@ public void onBackPressed() {
129131
public static void dismissIncoming() {
130132
v.cancel();
131133
player.stop();
134+
player.prepareAsync();
132135
fa.finish();
133136
}
134137

0 commit comments

Comments
 (0)