Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 214c76cd authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Framework: Remove a nonsensical substring(0)

String.substring(0) will return the same String instance. There is
also no reason to make a copy.

Found by errorprone.

Bug: 114129741
Test: m
Change-Id: Ic089f04efc3c73f70aa15a132d62ac665c8b8f4c
parent e5440456
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ public class AppWidgetProviderInfo implements Parcelable {
        that.initialLayout = this.initialLayout;
        that.initialKeyguardLayout = this.initialKeyguardLayout;
        that.configure = this.configure == null ? null : this.configure.clone();
        that.label = this.label == null ? null : this.label.substring(0);
        that.label = this.label;
        that.icon = this.icon;
        that.previewImage = this.previewImage;
        that.autoAdvanceViewId = this.autoAdvanceViewId;