projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework android-rmt display, add a few buttons
[goodguy/history.git]
/
CineRmt
/
src
/
main
/
java
/
com
/
local
/
cinermt
/
MainActivity.java
diff --git
a/CineRmt/src/main/java/com/local/cinermt/MainActivity.java
b/CineRmt/src/main/java/com/local/cinermt/MainActivity.java
index 6b08172c0be465611587dd30eb692efb6c62f182..366a5ab6f25dc4fd3cfe3c72dd8d9ac1659ba9c8 100644
(file)
--- a/
CineRmt/src/main/java/com/local/cinermt/MainActivity.java
+++ b/
CineRmt/src/main/java/com/local/cinermt/MainActivity.java
@@
-13,7
+13,6
@@
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
-import android.view.View.OnLongClickListener;
import android.widget.ImageButton;
import android.widget.Toast;
import android.widget.ImageButton;
import android.widget.Toast;
@@
-188,6
+187,8
@@
public class MainActivity extends AppCompatActivity
img.setOnClickListener(this);
img = (ImageButton)findViewById(R.id.play);
img.setOnClickListener(this);
img.setOnClickListener(this);
img = (ImageButton)findViewById(R.id.play);
img.setOnClickListener(this);
+ img = (ImageButton)findViewById(R.id.rplay);
+ img.setOnClickListener(this);
img = (ImageButton)findViewById(R.id.suspend);
img.setOnClickListener(this);
img = (ImageButton)findViewById(R.id.suspend);
img.setOnClickListener(this);
@@
-210,7
+211,10
@@
public class MainActivity extends AppCompatActivity
public void onClick(View v) {
if (v instanceof ImageButton) {
int id = ((ImageButton)v).getId();
public void onClick(View v) {
if (v instanceof ImageButton) {
int id = ((ImageButton)v).getId();
- if (id == R.id.button0) { send("key 0"); }
+ if (id == R.id.stop) { send("stop"); }
+ else if (id == R.id.play) { send("play"); }
+ else if (id == R.id.rplay) { send("rplay"); }
+ else if (id == R.id.button0) { send("key 0"); }
else if (id == R.id.button1) { send("key 1"); }
else if (id == R.id.button2) { send("key 2"); }
else if (id == R.id.button3) { send("key 3"); }
else if (id == R.id.button1) { send("key 1"); }
else if (id == R.id.button2) { send("key 2"); }
else if (id == R.id.button3) { send("key 3"); }
@@
-237,8
+241,6
@@
public class MainActivity extends AppCompatActivity
else if (id == R.id.media_dn) { send("media_dn"); }
else if (id == R.id.slow_rt) { send("slow_rt"); }
else if (id == R.id.full_scr) { send("key F"); }
else if (id == R.id.media_dn) { send("media_dn"); }
else if (id == R.id.slow_rt) { send("slow_rt"); }
else if (id == R.id.full_scr) { send("key F"); }
- else if (id == R.id.stop) { send("stop"); }
- else if (id == R.id.play) { send("play"); }
else {
save_defaults();
if (id == R.id.config) {
else {
save_defaults();
if (id == R.id.config) {