mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 22:45:41 +03:00
properly name context variable
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
29a357ad08
commit
f2b838f8b7
1 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ import java.util.Set;
|
||||||
|
|
||||||
public class WebRtcAudioManager {
|
public class WebRtcAudioManager {
|
||||||
private static final String TAG = WebRtcAudioManager.class.getSimpleName();
|
private static final String TAG = WebRtcAudioManager.class.getSimpleName();
|
||||||
private final Context magicContext;
|
private final Context context;
|
||||||
private final WebRtcBluetoothManager bluetoothManager;
|
private final WebRtcBluetoothManager bluetoothManager;
|
||||||
private final boolean useProximitySensor;
|
private final boolean useProximitySensor;
|
||||||
private final AudioManager audioManager;
|
private final AudioManager audioManager;
|
||||||
|
@ -83,7 +83,7 @@ public class WebRtcAudioManager {
|
||||||
private WebRtcAudioManager(Context context, boolean useProximitySensor) {
|
private WebRtcAudioManager(Context context, boolean useProximitySensor) {
|
||||||
Log.d(TAG, "ctor");
|
Log.d(TAG, "ctor");
|
||||||
ThreadUtils.checkIsOnMainThread();
|
ThreadUtils.checkIsOnMainThread();
|
||||||
magicContext = context;
|
this.context = context;
|
||||||
audioManager = ((AudioManager) context.getSystemService(Context.AUDIO_SERVICE));
|
audioManager = ((AudioManager) context.getSystemService(Context.AUDIO_SERVICE));
|
||||||
bluetoothManager = WebRtcBluetoothManager.create(context, this);
|
bluetoothManager = WebRtcBluetoothManager.create(context, this);
|
||||||
wiredHeadsetReceiver = new WiredHeadsetReceiver();
|
wiredHeadsetReceiver = new WiredHeadsetReceiver();
|
||||||
|
@ -341,14 +341,14 @@ public class WebRtcAudioManager {
|
||||||
* Helper method for receiver registration.
|
* Helper method for receiver registration.
|
||||||
*/
|
*/
|
||||||
private void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
|
private void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
|
||||||
ContextExtensionsKt.registerBroadcastReceiver(magicContext, receiver, filter, ReceiverFlag.NotExported);
|
ContextExtensionsKt.registerBroadcastReceiver(context, receiver, filter, ReceiverFlag.NotExported);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method for unregistration of an existing receiver.
|
* Helper method for unregistration of an existing receiver.
|
||||||
*/
|
*/
|
||||||
private void unregisterReceiver(BroadcastReceiver receiver) {
|
private void unregisterReceiver(BroadcastReceiver receiver) {
|
||||||
magicContext.unregisterReceiver(receiver);
|
context.unregisterReceiver(receiver);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -377,7 +377,7 @@ public class WebRtcAudioManager {
|
||||||
* Gets the current earpiece state.
|
* Gets the current earpiece state.
|
||||||
*/
|
*/
|
||||||
private boolean hasEarpiece() {
|
private boolean hasEarpiece() {
|
||||||
return magicContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
|
return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue