move initFeaturesVisibility to onStart

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-01-31 15:54:42 +01:00
parent eca05a434a
commit 22db09d721
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -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);