|
|
@ -28,7 +28,6 @@ import android.os.Bundle;
|
|
|
|
import android.preference.PreferenceManager;
|
|
|
|
import android.preference.PreferenceManager;
|
|
|
|
import android.util.Base64;
|
|
|
|
import android.util.Base64;
|
|
|
|
import android.view.ContextMenu;
|
|
|
|
import android.view.ContextMenu;
|
|
|
|
import android.view.InflateException;
|
|
|
|
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.Menu;
|
|
|
|
import android.view.Menu;
|
|
|
|
import android.view.MenuItem;
|
|
|
|
import android.view.MenuItem;
|
|
|
@ -65,15 +64,7 @@ public class FragmentWebView extends FragmentBase {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Nullable
|
|
|
|
@Nullable
|
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
|
View view = null;
|
|
|
|
View view = inflater.inflate(R.layout.fragment_webview, container, false);
|
|
|
|
try {
|
|
|
|
|
|
|
|
view = inflater.inflate(R.layout.fragment_webview, container, false);
|
|
|
|
|
|
|
|
} catch (InflateException ex) {
|
|
|
|
|
|
|
|
Toast.makeText(getContext(),
|
|
|
|
|
|
|
|
getString(R.string.title_no_viewer, Helper.formatThrowable(ex)),
|
|
|
|
|
|
|
|
Toast.LENGTH_LONG).show();
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
progressBar = view.findViewById(R.id.progressbar);
|
|
|
|
progressBar = view.findViewById(R.id.progressbar);
|
|
|
|
webview = view.findViewById(R.id.webview);
|
|
|
|
webview = view.findViewById(R.id.webview);
|
|
|
|