mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Remove some dead code
This commit is contained in:
1
.idea/inspectionProfiles/Project_Default.xml
generated
1
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -1,6 +1,7 @@
|
|||||||
<component name="InspectionProjectProfileManager">
|
<component name="InspectionProjectProfileManager">
|
||||||
<profile version="1.0">
|
<profile version="1.0">
|
||||||
<option name="myName" value="Project Default" />
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="AndroidLintGoogleAppIndexingWarning" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="EmptyStatementBody" enabled="true" level="WARNING" enabled_by_default="true">
|
<inspection_tool class="EmptyStatementBody" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
<option name="m_reportEmptyBlocks" value="true" />
|
<option name="m_reportEmptyBlocks" value="true" />
|
||||||
<option name="commentsAreContent" value="true" />
|
<option name="commentsAreContent" value="true" />
|
||||||
|
@@ -768,16 +768,10 @@ public class DrawerLayout extends ViewGroup {
|
|||||||
// or pick a magic number from thin air otherwise.
|
// or pick a magic number from thin air otherwise.
|
||||||
// TODO Better communication with tools of this bogus state.
|
// TODO Better communication with tools of this bogus state.
|
||||||
// It will crash on a real device.
|
// It will crash on a real device.
|
||||||
if (widthMode == MeasureSpec.AT_MOST) {
|
if (widthMode == MeasureSpec.UNSPECIFIED) {
|
||||||
widthMode = MeasureSpec.EXACTLY;
|
|
||||||
} else if (widthMode == MeasureSpec.UNSPECIFIED) {
|
|
||||||
widthMode = MeasureSpec.EXACTLY;
|
|
||||||
widthSize = 300;
|
widthSize = 300;
|
||||||
}
|
}
|
||||||
if (heightMode == MeasureSpec.AT_MOST) {
|
if (heightMode == MeasureSpec.UNSPECIFIED) {
|
||||||
heightMode = MeasureSpec.EXACTLY;
|
|
||||||
} else if (heightMode == MeasureSpec.UNSPECIFIED) {
|
|
||||||
heightMode = MeasureSpec.EXACTLY;
|
|
||||||
heightSize = 300;
|
heightSize = 300;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@@ -42,11 +42,6 @@ public class TermuxFilePickerActivity extends ListActivity {
|
|||||||
setListAdapter(mAdapter);
|
setListAdapter(mAdapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onResume() {
|
|
||||||
super.onResume();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
int id = item.getItemId();
|
int id = item.getItemId();
|
||||||
|
@@ -15,7 +15,7 @@ public class OperatingSystemControlTest extends TerminalTestCase {
|
|||||||
withTerminalSized(10, 10);
|
withTerminalSized(10, 10);
|
||||||
enterString("\033]0;Hello, world\007");
|
enterString("\033]0;Hello, world\007");
|
||||||
assertEquals("Hello, world", mTerminal.getTitle());
|
assertEquals("Hello, world", mTerminal.getTitle());
|
||||||
expectedTitleChanges.add(new ChangedTitle(null, "Hello, world"));
|
expectedTitleChanges.add(new ChangedTitle((String) null, "Hello, world"));
|
||||||
assertEquals(expectedTitleChanges, mOutput.titleChanges);
|
assertEquals(expectedTitleChanges, mOutput.titleChanges);
|
||||||
|
|
||||||
enterString("\033]0;Goodbye, world\007");
|
enterString("\033]0;Goodbye, world\007");
|
||||||
|
Reference in New Issue
Block a user