From 400ab547876d18f5dc4059736e19a5d8c5844b52 Mon Sep 17 00:00:00 2001 From: leCradle Date: Tue, 12 Mar 2013 11:44:54 +0100 Subject: [PATCH] removed not used code from main activity --- .../com/cradle/iitc_mobile/IITC_Mobile.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java index 7a1c1db9..9a0d3d8c 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java @@ -14,9 +14,6 @@ import android.content.pm.PackageManager.NameNotFoundException; import android.util.Log; import android.view.Menu; import android.view.MenuItem; -import android.view.MotionEvent; -import android.view.View; -import android.view.View.OnTouchListener; import android.widget.Toast; public class IITC_Mobile extends Activity { @@ -52,17 +49,6 @@ public class IITC_Mobile extends Activity { Log.d("No Intent call", "loading https://www.ingress.com/intel"); iitc_view.loadUrl("https://www.ingress.com/intel"); } - - // listen to touches (think we need this) - iitc_view.setOnTouchListener(new OnTouchListener() { - @Override - public boolean onTouch(View v, MotionEvent event) { - back_button_pressed = false; - // return false to indicate, that we don't consumed this event. this leads - // to the execution of our touch event - return false; - } - }); } } @@ -72,13 +58,6 @@ public class IITC_Mobile extends Activity { iitc_view.saveState(outState); } - // we want a self defined behavior on resume - @Override - protected void onResume() { - super.onResume(); - this.back_button_pressed = false; - } - // we want a self defined behavior for the back button @Override public void onBackPressed() {