summaryrefslogtreecommitdiff
path: root/client/Piztor
diff options
context:
space:
mode:
authorsjtufs <[email protected]>2013-08-26 23:39:06 +0800
committersjtufs <[email protected]>2013-08-26 23:39:06 +0800
commit0cfa72f9f352a81ff40ce41d2a94aa4f63d3a815 (patch)
tree5c50cf5d8c303551262fe0702d9aad5808d0d1d4 /client/Piztor
parentac55b507e9745b60d4c677ee356a470cb68266e4 (diff)
Enable old gesture control for testing
Diffstat (limited to 'client/Piztor')
-rw-r--r--client/Piztor/src/com/macaroon/piztor/Main.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/Main.java b/client/Piztor/src/com/macaroon/piztor/Main.java
index 5873afe..fe49ab6 100644
--- a/client/Piztor/src/com/macaroon/piztor/Main.java
+++ b/client/Piztor/src/com/macaroon/piztor/Main.java
@@ -11,6 +11,7 @@ import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.widget.ImageButton;
+import android.widget.ImageView;
public class Main extends PiztorAct {
final static int SearchButtonPress = 1;
@@ -203,6 +204,8 @@ public class Main extends PiztorAct {
autodate = new Timer();
AppMgr.transam.setHandler(fromTransam);
setContentView(R.layout.activity_main);
+ ImageView view = (ImageView) findViewById(R.id.main_mapview);
+ view.setOnTouchListener(new MultiTouchListener());
}
@Override
@@ -213,15 +216,16 @@ public class Main extends PiztorAct {
btnSearch = (ImageButton) findViewById(R.id.footbar_btn_search);
btnSettings = (ImageButton) findViewById(R.id.footbar_btn_settings);
btnFetch.setOnClickListener(new View.OnClickListener() {
+
@Override
public void onClick(View arg0) {
- actMgr.trigger(FetchButtonPress);
+ // actMgr.trigger(FetchButtonPress);
}
});
btnFocus.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- actMgr.trigger(FocuseButtonPress);
+ // actMgr.trigger(FocuseButtonPress);
}
});
btnSettings.setOnClickListener(new View.OnClickListener() {
@@ -230,7 +234,7 @@ public class Main extends PiztorAct {
actMgr.trigger(AppMgr.toSettings);
}
});
- autodate.schedule(new AutoUpdate(), 0, 5000);
+ //autodate.schedule(new AutoUpdate(), 0, 5000);
}
@Override
@@ -249,4 +253,4 @@ public class Main extends PiztorAct {
return false;
}
-} \ No newline at end of file
+}