Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fixes #3832 Fixes #3830 Fix tray status and private button config changes refresh #3840

Merged
merged 1 commit into from
Aug 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ public void updateUI() {

return false;
});

mBinding.leftController.setVisibility(mLeftControllerBatteryLevel < 0 ? View.GONE : View.VISIBLE);
mBinding.rightController.setVisibility(mRightControllerBatteryLevel < 0 ? View.GONE : View.VISIBLE);

updateTime();
updateWifi();
}

public void start(Context context) {
Expand Down Expand Up @@ -569,7 +575,7 @@ public void attachToWindow(@NonNull WindowWidget aWindow) {
};

private Observer<ObservableBoolean> mIsPrivateSession = aBoolean -> {
if (mBinding.privateButton.isHovered()) {
if (mBinding.privateButton.isHovered() || mViewModel.getIsPrivateSession().getValue().get() == aBoolean.get()) {
return;
}
if (aBoolean.get()) {
Expand Down