From 832c61f4426262b3dc493161cfeb4548cab2b671 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 8 May 2013 18:10:48 +0200 Subject: [PATCH 1/2] added action bar home button to settings...made toggle fullscreen an method of main activity --- mobile/AndroidManifest.xml | 3 +- .../com/cradle/iitc_mobile/IITC_Mobile.java | 55 ++++++++----------- .../com/cradle/iitc_mobile/IITC_Settings.java | 17 ++++++ 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/mobile/AndroidManifest.xml b/mobile/AndroidManifest.xml index 8249bf42..25606ea8 100644 --- a/mobile/AndroidManifest.xml +++ b/mobile/AndroidManifest.xml @@ -16,7 +16,8 @@ android:allowBackup="true" android:icon="@drawable/ic_iitcm" android:label="@string/app_name" - android:theme="@style/AppTheme" android:uiOptions="splitActionBarWhenNarrow"> + android:theme="@style/AppTheme" + android:uiOptions="splitActionBarWhenNarrow"> asset_list = new ArrayList(); ArrayList asset_values = new ArrayList(); @@ -70,4 +75,16 @@ public class IITC_Settings extends Activity { getFragmentManager().beginTransaction() .replace(android.R.id.content, settings).commit(); } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + // exit settings when home button (iitc icon) is pressed + case android.R.id.home : + this.finish(); + return true; + default: + return super.onOptionsItemSelected(item); + } + } } \ No newline at end of file From d40323fa9995bdb50f66b6fff755d12795ae9262 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 8 May 2013 18:18:37 +0200 Subject: [PATCH 2/2] removed privacy-view from mobile assets. it does not work and is not needed on mobile --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 8cf81b1e..7bd5606b 100755 --- a/build.py +++ b/build.py @@ -225,7 +225,7 @@ if buildMobile: except: pass shutil.rmtree("mobile/assets/plugins") - shutil.copytree(os.path.join(outDir,"plugins"), "mobile/assets/plugins", ignore=shutil.ignore_patterns('*.meta.js', 'force-https*')) + shutil.copytree(os.path.join(outDir,"plugins"), "mobile/assets/plugins", ignore=shutil.ignore_patterns('*.meta.js', 'force-https*', 'privacy-view*')) if buildMobile != 'copyonly':