Skip to content

Commit

Permalink
Not creating StringBuilder without use
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Aug 21, 2020
1 parent 6132f81 commit 226c8ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/net/kdt/pojavlaunch/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,9 @@ public boolean onTouch(View p1, MotionEvent e)
{
x += ((int) e.getX()) / scaleFactor;
y -= ((int) e.getY()) / scaleFactor;

StringBuilder builder = new StringBuilder();

if (debugText.getVisibility() == View.VISIBLE && !debugErrored) {
StringBuilder builder = new StringBuilder();
try {
builder.append("PointerCapture debug\n");
builder.append("MotionEvent=" + e.getActionMasked() + "\n");
Expand Down

0 comments on commit 226c8ae

Please sign in to comment.