mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01: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();
|
initClickListeners();
|
||||||
binding.microphoneButton.setOnTouchListener(new MicrophoneButtonTouchListener());
|
binding.microphoneButton.setOnTouchListener(new MicrophoneButtonTouchListener());
|
||||||
|
|
||||||
@ -447,6 +446,18 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
updateSelfVideoViewPosition();
|
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)
|
@RequiresApi(api = Build.VERSION_CODES.S)
|
||||||
private void requestBluetoothPermission() {
|
private void requestBluetoothPermission() {
|
||||||
if (ContextCompat.checkSelfPermission(
|
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() {
|
private void initFeaturesVisibility() {
|
||||||
if (isAllowedToStartOrStopRecording()) {
|
if (isAllowedToStartOrStopRecording()) {
|
||||||
binding.moreCallActions.setVisibility(View.VISIBLE);
|
binding.moreCallActions.setVisibility(View.VISIBLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user