|
@@ -425,7 +425,6 @@ public class CallActivity extends CallBaseActivity {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- initFeaturesVisibility();
|
|
|
initClickListeners();
|
|
|
binding.microphoneButton.setOnTouchListener(new MicrophoneButtonTouchListener());
|
|
|
|
|
@@ -447,6 +446,18 @@ public class CallActivity extends CallBaseActivity {
|
|
|
updateSelfVideoViewPosition();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void onStart() {
|
|
|
+ super.onStart();
|
|
|
+ initFeaturesVisibility();
|
|
|
+
|
|
|
+ try {
|
|
|
+ cache.evictAll();
|
|
|
+ } catch (IOException e) {
|
|
|
+ Log.e(TAG, "Failed to evict cache");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@RequiresApi(api = Build.VERSION_CODES.S)
|
|
|
private void requestBluetoothPermission() {
|
|
|
if (ContextCompat.checkSelfPermission(
|
|
@@ -462,16 +473,6 @@ public class CallActivity extends CallBaseActivity {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void onStart() {
|
|
|
- super.onStart();
|
|
|
- try {
|
|
|
- cache.evictAll();
|
|
|
- } catch (IOException e) {
|
|
|
- Log.e(TAG, "Failed to evict cache");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
private void initFeaturesVisibility() {
|
|
|
if (isAllowedToStartOrStopRecording()) {
|
|
|
binding.moreCallActions.setVisibility(View.VISIBLE);
|