mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Remove some dead code
This commit is contained in:
@@ -768,16 +768,10 @@ public class DrawerLayout extends ViewGroup {
|
||||
// or pick a magic number from thin air otherwise.
|
||||
// TODO Better communication with tools of this bogus state.
|
||||
// It will crash on a real device.
|
||||
if (widthMode == MeasureSpec.AT_MOST) {
|
||||
widthMode = MeasureSpec.EXACTLY;
|
||||
} else if (widthMode == MeasureSpec.UNSPECIFIED) {
|
||||
widthMode = MeasureSpec.EXACTLY;
|
||||
if (widthMode == MeasureSpec.UNSPECIFIED) {
|
||||
widthSize = 300;
|
||||
}
|
||||
if (heightMode == MeasureSpec.AT_MOST) {
|
||||
heightMode = MeasureSpec.EXACTLY;
|
||||
} else if (heightMode == MeasureSpec.UNSPECIFIED) {
|
||||
heightMode = MeasureSpec.EXACTLY;
|
||||
if (heightMode == MeasureSpec.UNSPECIFIED) {
|
||||
heightSize = 300;
|
||||
}
|
||||
} else {
|
||||
|
@@ -42,11 +42,6 @@ public class TermuxFilePickerActivity extends ListActivity {
|
||||
setListAdapter(mAdapter);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
int id = item.getItemId();
|
||||
|
@@ -15,7 +15,7 @@ public class OperatingSystemControlTest extends TerminalTestCase {
|
||||
withTerminalSized(10, 10);
|
||||
enterString("\033]0;Hello, world\007");
|
||||
assertEquals("Hello, world", mTerminal.getTitle());
|
||||
expectedTitleChanges.add(new ChangedTitle(null, "Hello, world"));
|
||||
expectedTitleChanges.add(new ChangedTitle((String) null, "Hello, world"));
|
||||
assertEquals(expectedTitleChanges, mOutput.titleChanges);
|
||||
|
||||
enterString("\033]0;Goodbye, world\007");
|
||||
|
Reference in New Issue
Block a user