PushWebview.java
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
*/