ui: Corrected '&' to '&&' in boolean if statement.

The use of non-short-circuit logic in a boolean context is likely a mistake - one that could cause serious program errors as conditions are evaluated under the wrong circumstances.
This commit is contained in:
ardevd 2018-05-04 09:06:21 +02:00
parent 3c5cc68005
commit 58e4360630

View file

@ -272,7 +272,7 @@ public class UserInfoActivity extends FileActivity {
}
if (userInfo.getPhone() == null && userInfo.getEmail() == null && userInfo.getAddress() == null
&& userInfo.getTwitter() == null & userInfo.getWebsite() == null) {
&& userInfo.getTwitter() == null && userInfo.getWebsite() == null) {
setErrorMessageForMultiList(getString(R.string.userinfo_no_info_headline),
getString(R.string.userinfo_no_info_text), R.drawable.ic_user);