mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 20:22:03 +00:00
move initFeaturesVisibility to onStart
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
eca05a434a
commit
22db09d721
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user