1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-12-22 19:08:03 +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";
private DiasporaUrlHelper urls;
private Bundle webViewState;
private ValueCallback<Uri[]> imageUploadFilePathCallbackNew;
private ValueCallback<Uri> imageUploadFilePathCallbackOld;
@ -268,21 +267,6 @@ public class StreamFragment extends WebViewFragment {
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
public ContextMenuWebView getWebView() {
AppLog.d(this, "getWebView: "+(this.webView != null));