stopped the page reloading when the G1 keyboard is flipped out.

This commit is contained in:
Ray Vahey
2009-03-09 17:28:07 +07:00
parent 49844b4e39
commit d758397df0
8 changed files with 31 additions and 29 deletions
+7 -2
View File
@@ -23,6 +23,7 @@ package com.nitobi.phonegap;
*/
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
@@ -64,8 +65,12 @@ public class DroidGap extends Activity {
appView.loadUrl("file:///android_asset/index.html");
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
//don't reload the current page when the orientation is changed
super.onConfigurationChanged(newConfig);
}
private void bindBrowser(WebView appView)
{