Here too
...but why was that function created elsewhere if here you just compare this?
This commit is contained in:
parent
b97e2deaa2
commit
4985105711
|
@ -1045,7 +1045,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
|
||||||
if (this.mAccount.isOnlineAndConnected() && !this.mFetchingAvatar) {
|
if (this.mAccount.isOnlineAndConnected() && !this.mFetchingAvatar) {
|
||||||
Features features = this.mAccount.getXmppConnection().getFeatures();
|
Features features = this.mAccount.getXmppConnection().getFeatures();
|
||||||
this.binding.stats.setVisibility(View.VISIBLE);
|
this.binding.stats.setVisibility(View.VISIBLE);
|
||||||
boolean showBatteryWarning = !xmppConnectionService.getPushManagementService().available(mAccount) && isOptimizingBattery();
|
boolean showBatteryWarning = isOptimizingBattery();
|
||||||
boolean showDataSaverWarning = isAffectedByDataSaver();
|
boolean showDataSaverWarning = isAffectedByDataSaver();
|
||||||
showOsOptimizationWarning(showBatteryWarning, showDataSaverWarning);
|
showOsOptimizationWarning(showBatteryWarning, showDataSaverWarning);
|
||||||
this.binding.sessionEst.setText(UIHelper.readableTimeDifferenceFull(this, this.mAccount.getXmppConnection()
|
this.binding.sessionEst.setText(UIHelper.readableTimeDifferenceFull(this, this.mAccount.getXmppConnection()
|
||||||
|
|
Loading…
Reference in a new issue