1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-25 13:52:08 +01:00

Removed onPause and onResume in oder to fix issue with image upload

This commit is contained in:
vanitasvitae 2016-09-22 00:40:35 +02:00
parent 3eb5b2c867
commit 179fb3e741

View file

@ -48,7 +48,6 @@ public class StreamFragment extends WebViewFragment {
public static final String TAG = "com.github.dfa.diaspora_android.StreamFragment"; public static final String TAG = "com.github.dfa.diaspora_android.StreamFragment";
private DiasporaUrlHelper urls; private DiasporaUrlHelper urls;
private Bundle webViewState;
private ValueCallback<Uri[]> imageUploadFilePathCallbackNew; private ValueCallback<Uri[]> imageUploadFilePathCallbackNew;
private ValueCallback<Uri> imageUploadFilePathCallbackOld; private ValueCallback<Uri> imageUploadFilePathCallbackOld;
@ -268,21 +267,6 @@ public class StreamFragment extends WebViewFragment {
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }
@Override
public void onPause() {
super.onPause();
webViewState = new Bundle();
webView.saveState(webViewState);
}
@Override
public void onResume() {
super.onResume();
if(webViewState != null) {
webView.restoreState(webViewState);
}
}
@Override @Override
public ContextMenuWebView getWebView() { public ContextMenuWebView getWebView() {
AppLog.d(this, "getWebView: "+(this.webView != null)); AppLog.d(this, "getWebView: "+(this.webView != null));