Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setBluetoothScoOn(boolean paramBoolean)
- {
- IAudioService localIAudioService = getService();
- int i = getMode();
- int j = getCallModeInfo();
- if ((j >= -1) && (j > 2)) {}
- int k = 0;
- int m = 1;
- try
- {
- k = localIAudioService.getHeadsetState();
- boolean bool = localIAudioService.getBluetoothNREC();
- m = bool;
- }
- catch (RemoteException localRemoteException1)
- {
- for (;;)
- {
- try
- {
- localIAudioService.setBluetoothScoOn(paramBoolean);
- return;
- }
- catch (RemoteException localRemoteException2)
- {
- label99:
- label108:
- Log.e(TAG, "Dead object in setBluetoothScoOn", localRemoteException2);
- }
- localRemoteException1 = localRemoteException1;
- Log.e(TAG, "Dead object getHeadsetState or getBluetoothNREC in setBluetoothScoOn", localRemoteException1);
- continue;
- changeModemAudioPath(9);
- continue;
- switch (k)
- {
- default:
- changeModemAudioPath(1);
- break;
- case 1:
- changeModemAudioPath(2);
- break;
- case 2:
- changeModemAudioPath(5);
- }
- }
- }
- if (i == 2)
- {
- if (paramBoolean != true) {
- break label108;
- }
- if (m != 1) {
- break label99;
- }
- changeModemAudioPath(4);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment