Add check for vBatDeadline in past

Remove logs
This commit is contained in:
deeppandya
2023-08-09 11:45:38 -04:00
parent b542c15020
commit b6799bef61
@@ -1022,13 +1022,11 @@ public class BraveRewardsPanel
@Override
public void onGetUserType(int userType) {
switch (userType) {
case UserType.LEGACY_UNCONNECTED:
showVbatExpireNotice();
break;
case UserType.UNCONNECTED:
newInstallViewChanges();
break;
if (UserType.LEGACY_UNCONNECTED == userType
&& mBraveRewardsNativeWorker.getVbatDeadline() > System.currentTimeMillis()) {
showVbatExpireNotice();
} else if (UserType.UNCONNECTED == userType) {
newInstallViewChanges();
}
}