Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63b36030 authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Use lambda for snackbar callback

parent 12e23855
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@ import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
@@ -335,12 +333,7 @@ public class SettingsActivity extends AppCompatActivity {
        // show snackbar after 60s to switch back to old login method
        new Handler().postDelayed(() -> {
            Snackbar.make(webView, R.string.fallback_weblogin_text, Snackbar.LENGTH_INDEFINITE)
                .setAction(R.string.fallback_weblogin_back, new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        initLegacyLogin(field_url.getText().toString());
                    }
                }).show();
                .setAction(R.string.fallback_weblogin_back, (View.OnClickListener) v -> initLegacyLogin(field_url.getText().toString())).show();
        }, 45 * 1000);
    }