Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 9cb4314

Browse files
jineshfrancsjafu888
authored andcommitted
Update MainActivity.java
Changed String literal directly used inside the log method to constant. Declared a private static final string and used inside the log method.
1 parent 78ab37a commit 9cb4314

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

toolsAndroid/CLAnalyst/app/src/main/java/android/support/clanalyst/MainActivity.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
import java.util.ArrayList;
1111

1212
public class MainActivity extends AppCompatActivity {
13-
13+
private static final String TAG = "MAIN";
1414
@Override
1515
protected void onCreate(Bundle savedInstanceState) {
1616
super.onCreate(savedInstanceState);
1717
setContentView(R.layout.activity_main);
1818
ConstraintLayout cl = findConstraintLayout(this);
1919
if (cl != null) {
20-
cl.postDelayed( ()->{DumpCL.log("MAIN",cl);},2000);
20+
cl.postDelayed( ()->{DumpCL.log(TAG,cl);},2000);
2121
}
2222
}
2323

@@ -40,4 +40,4 @@ static ConstraintLayout findConstraintLayout(AppCompatActivity activity) {
4040
}
4141
return null;
4242
}
43-
}
43+
}

0 commit comments

Comments
 (0)