Skip to content

Commit

Permalink
MakeCode - tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwork committed Jul 4, 2024
1 parent 0e2e63b commit a1e3102
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.samsung.microbit.ui.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.util.Base64;
Expand All @@ -29,12 +26,7 @@
import com.samsung.microbit.utils.ProjectsHelper;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;

import static android.content.ContentValues.TAG;

Expand All @@ -57,8 +49,6 @@ public class MakeCodeWebView extends Activity implements View.OnClickListener {
private ValueCallback<Uri[]> onShowFileChooser_filePathCallback;

private boolean mRelaunchOnFinishNavigation = false;
private boolean mScriptSubmitOnFinishNavigation = false;

private String mRelaunchURL = makecodeUrl;


Expand Down Expand Up @@ -108,14 +98,6 @@ public boolean shouldOverrideUrlLoading( WebView view, String url) {
}
public boolean shouldOverrideUrlLoading( WebView view, WebResourceRequest request ) {
Log.v(TAG, "shouldOverrideUrlLoading " + request);
Log.v(TAG, "getUrl " + request.getUrl());
Log.v(TAG, "isForMainFrame " + request.isForMainFrame());
Log.v(TAG, "hasGesture " + request.hasGesture());
Log.v(TAG, "getMethod " + request.getMethod());
Log.v(TAG, "getRequestHeaders " + request.getRequestHeaders());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Log.v(TAG, "isRedirect " + request.isRedirect());
}
return overrideUri( request.getUrl());
}

Expand Down Expand Up @@ -297,7 +279,6 @@ private boolean overrideUri( final Uri uri) {

String host = uri.getHost();
String path = uri.getPath();
String frag = uri.getFragment();
host = host == null ? "" : host.toLowerCase();
path = path == null ? "" : path.toLowerCase();

Expand Down

0 comments on commit a1e3102

Please sign in to comment.