controllers: removed identical sub-expression in if statement. (#529)

Using the same value on either side of a binary operator is almost always a mistake. Either there is supposed to be a null check for something else in there or the second sub expression should be removed.

Signed-off-by: eho <edvard.holst@gmail.com>
This commit is contained in:
ardevd 2019-04-17 23:50:18 +02:00 committed by Mario Đanić
parent be986de021
commit 017ee9e034

View File

@ -445,7 +445,7 @@ public class CallNotificationController extends BaseController {
script.forEach(output);
output.copyTo(resource);
if (backgroundImageView != null && backgroundImageView != null) {
if (backgroundImageView != null) {
backgroundImageView.setImageDrawable(new BitmapDrawable(resource));
}
} else if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 201) {