package org.mysociety.FixMyStreet;

import android.os.Bundle;
import org.apache.cordova.*;

public class AndroidActivity extends DroidGap {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.setIntegerProperty("splashscreen", R.drawable.splash);
        super.loadUrl("file:///android_asset/www/src/index.html", 30000);
    }
}
@@ -55,16 +55,52 @@
 Bundle;%0A
+import android.view.WindowManager;%0A%0A
 import o
@@ -335,16 +335,961 @@
 State);%0A
+        /* yes, we are using a magic number here but the version constants aren't defined%0A           until the relevant release so if you want to check against a version that's%0A           after your minimum target version you have to use the number :(%0A           in this case 11 is Honeycomb / 3.0 */%0A        if (android.os.Build.VERSION.SDK_INT %3C= 11) %7B%0A            /* If we leave the default on for android 2 then on the details screen it scrolls%0A               the details screen in such a way that you can't see where you are typing so%0A               we switch back to adjustPan. We don't want to use that all the time as adjustPan%0A               stops you scrolling the screen when the softKeyboard is displayed which is what%0A               we'd like to be able to do so people can scroll to see if there are other%0A               fields. */%0A        %09getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);%0A        %7D%0A
         

Resolve details screen scrolling issues on Android 2