Bläddra i källkod

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>
ardevd 6 år sedan
förälder
incheckning
017ee9e034

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java

@@ -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) {