Skip to content
Permalink
Browse files

Implement window.alert on Android

  • Loading branch information...
paulrouget committed Aug 27, 2019
1 parent 66e5ad0 commit d339d1f30b3bd8e0cc959f6af766029839e1f562
Showing with 5 additions and 0 deletions.
  1. +5 −0 support/android/apk/servoapp/src/main/java/org/mozilla/servo/MainActivity.java
@@ -6,6 +6,7 @@
package org.mozilla.servo;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@@ -131,6 +132,10 @@ public void onStopClicked(View v) {

@Override
public void onAlert(String message) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(message);
AlertDialog alert = builder.create();
alert.show();
}

@Override

0 comments on commit d339d1f

Please sign in to comment.
You can’t perform that action at this time.