* adapted mobile build script to new iitc build script
* got rid of some forced closes
This commit is contained in:
parent
ea8293e533
commit
70d8858c67
@ -1 +1 @@
|
||||
../../iitc-debug.user.js
|
||||
../../build/local8000/total-conversion-build.user.js
|
@ -4,9 +4,10 @@ set -e
|
||||
|
||||
cd `dirname "$0"`
|
||||
cd ..
|
||||
./build.py
|
||||
compressed="$(uglifyjs iitc-debug.user.js)"
|
||||
echo "${compressed}" > "iitc-debug.user.js"
|
||||
./build.py local8000
|
||||
cd build/local8000
|
||||
compressed="$(uglifyjs total-conversion-build.user.js)"
|
||||
echo "${compressed}" > "total-conversion-build.user.js"
|
||||
|
||||
cd mobile
|
||||
cd ../../mobile
|
||||
ant release
|
||||
|
@ -1,6 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.cradle.iitc_mobile.IITC_WebView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/webview"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
/>
|
||||
android:orientation="vertical" >
|
||||
|
||||
<com.cradle.iitc_mobile.IITC_WebView
|
||||
android:id="@+id/iitc_webview"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"/>
|
||||
|
||||
</LinearLayout>
|
@ -25,15 +25,15 @@ public class IITC_Mobile extends Activity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
iitc_view = (IITC_WebView) findViewById(R.id.iitc_webview);
|
||||
|
||||
// we do not want to reload our page every time we switch orientations...
|
||||
// so restore state if activity was already created
|
||||
if(savedInstanceState != null) {
|
||||
((IITC_WebView)findViewById(R.id.webview)).restoreState(savedInstanceState);
|
||||
iitc_view.restoreState(savedInstanceState);
|
||||
}
|
||||
else {
|
||||
// load new iitc web view with ingress intel page
|
||||
iitc_view= (IITC_WebView) findViewById(R.id.webview);
|
||||
Intent intent = getIntent();
|
||||
String action = intent.getAction();
|
||||
if (Intent.ACTION_VIEW.equals(action)) {
|
||||
@ -99,6 +99,8 @@ public class IITC_Mobile extends Activity {
|
||||
iitc_view.getWebViewClient().loadIITC_JS(this);
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
} catch (NullPointerException e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
return true;
|
||||
// print version number
|
||||
|
Loading…
x
Reference in New Issue
Block a user