PushWebview.java 1.21 KB
package com.arellomobile.android.push;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class PushWebview
  extends Activity
{
  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    paramBundle = new WebView(this);
    String str = getIntent().getStringExtra("url");
    paramBundle.getSettings().setJavaScriptEnabled(true);
    paramBundle.setWebViewClient(new a((byte)0));
    paramBundle.reload();
    paramBundle.loadUrl(str);
    setContentView(paramBundle);
  }
  
  final class a
    extends WebViewClient
  {
    private a() {}
    
    public final boolean shouldOverrideUrlLoading(WebView paramWebView, String paramString)
    {
      PushWebview.this.finish();
      paramWebView = new Intent("android.intent.action.VIEW", Uri.parse(paramString));
      PushWebview.this.startActivity(paramWebView);
      return false;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/PushWebview.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */