Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/org/adblockplus/android/ConfigurationActivity.java

Issue 8493083: ABP/Android UI (Closed)
Patch Set: Created Oct. 5, 2012, 9:42 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 package org.adblockplus.android;
2
3 import android.app.Activity;
4 import android.content.Intent;
5 import android.net.Uri;
6 import android.os.Bundle;
7 import android.view.View;
8 import android.widget.TextView;
9
10 /**
11 * Displays configuration warning message.
12 */
13 public class ConfigurationActivity extends Activity
14 {
15 @Override
16 public void onCreate(Bundle savedInstanceState)
17 {
18 super.onCreate(savedInstanceState);
19 setContentView(R.layout.configuration);
20 int port = getIntent().getIntExtra("port", 0);
21 String msg1 = getString(R.string.msg_notraffic);
22 String msg2 = getString(R.string.msg_configuration, port);
23 ((TextView) findViewById(R.id.message_text)).setText(msg1 + " " + msg2);
24 }
25
26 public void onOk(View view)
27 {
28 finish();
29 }
30
31 public void onHelp(View view)
32 {
33 Uri uri = Uri.parse(getString(R.string.configuring_proxy_url));
34 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
35 startActivity(intent);
36 finish();
37 }
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld