Added clear button for Log
This commit is contained in:
@@ -173,6 +173,9 @@ public class MainActivity extends Activity {
|
||||
Toast.makeText(getApplicationContext(), "Log copied to clipboard.",
|
||||
Toast.LENGTH_LONG).show();
|
||||
return true;
|
||||
case R.id.action_delete:
|
||||
textViewVPCDStatus.setText("");
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
BIN
remote-reader/app/src/main/res/drawable-hdpi/ic_action_delete.png
Executable file
BIN
remote-reader/app/src/main/res/drawable-hdpi/ic_action_delete.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
remote-reader/app/src/main/res/drawable-mdpi/ic_action_delete.png
Executable file
BIN
remote-reader/app/src/main/res/drawable-mdpi/ic_action_delete.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
remote-reader/app/src/main/res/drawable-xhdpi/ic_action_delete.png
Executable file
BIN
remote-reader/app/src/main/res/drawable-xhdpi/ic_action_delete.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -8,4 +8,9 @@
|
||||
android:icon="@drawable/ic_action_copy"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item android:id="@+id/action_delete"
|
||||
android:title="@string/action_delete"
|
||||
android:icon="@drawable/ic_action_delete"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
</menu>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="action_copy">Copy Log</string>
|
||||
<string name="action_delete">Clear Log</string>
|
||||
|
||||
<string name="verbose">Verbose logging</string>
|
||||
<string name="error_tag_lost">Data transmission failed. Is the card still present?</string>
|
||||
|
||||
Reference in New Issue
Block a user