Skip to content

Commit

Permalink
Implement window.alert on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Aug 27, 2019
1 parent 66e5ad0 commit d339d1f
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d339d1f

Please sign in to comment.