mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fix two Android Studio inspect code warnings
This commit is contained in:
parent
d982c71efe
commit
7389dbb56f
2 changed files with 4 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ public class TermuxFilePickerActivity extends ListActivity {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.file_picker);
|
setContentView(R.layout.file_picker);
|
||||||
|
|
||||||
mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mFileNames);
|
mAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, mFileNames);
|
||||||
|
|
||||||
enterDirectory(new File(TERMUX_HOME));
|
enterDirectory(new File(TERMUX_HOME));
|
||||||
setListAdapter(mAdapter);
|
setListAdapter(mAdapter);
|
||||||
|
|
|
||||||
|
|
@ -377,9 +377,9 @@ public class TerminalRowTest extends TestCase {
|
||||||
// int[] expected = new int[] { TerminalEmulator.UNICODE_REPLACEMENT_CHAR, 'a', '8', 0x73EE, 0x009F, 0x881F, 0x8324, 0xD4C9, 0xFFFD,
|
// int[] expected = new int[] { TerminalEmulator.UNICODE_REPLACEMENT_CHAR, 'a', '8', 0x73EE, 0x009F, 0x881F, 0x8324, 0xD4C9, 0xFFFD,
|
||||||
// 'B', 0x009B, 0x61C9, 'Z' };
|
// 'B', 0x009B, 0x61C9, 'Z' };
|
||||||
int currentColumn = 0;
|
int currentColumn = 0;
|
||||||
for (int i = 0; i < points.length; i++) {
|
for (int point : points) {
|
||||||
row.setChar(currentColumn, points[i], 0);
|
row.setChar(currentColumn, point, 0);
|
||||||
currentColumn += WcWidth.width(points[i]);
|
currentColumn += WcWidth.width(point);
|
||||||
}
|
}
|
||||||
// assertLineStartsWith(points);
|
// assertLineStartsWith(points);
|
||||||
// assertEquals(Character.highSurrogate(0xC2541), line.mText[0]);
|
// assertEquals(Character.highSurrogate(0xC2541), line.mText[0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue