Skip to content

Commit bd03595

Browse files
committed
do not unregister event when app goes to background.
since VoIP app switch focosed activity oftenly we should allow incall manager to manage audio route during background and incall manager's life cycle should controled by app logic
1 parent 2cd0adc commit bd03595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/zxcpoiu/incallmanager/InCallManagerModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,13 +1656,13 @@ protected static void onRequestPermissionsResult(int requestCode, String[] permi
16561656
@Override
16571657
public void onHostResume() {
16581658
Log.d(TAG, "onResume()");
1659-
resume();
1659+
//resume();
16601660
}
16611661

16621662
@Override
16631663
public void onHostPause() {
16641664
Log.d(TAG, "onPause()");
1665-
pause();
1665+
//pause();
16661666
}
16671667

16681668
@Override

0 commit comments

Comments
 (0)