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

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

Issue 8363097: ABP/Android preferences UI (Closed) Base URL: https://hg.adblockplus.org/adblockplusandroid/
Patch Set: Created Sept. 14, 2012, 8:20 p.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 public class ConfigurationActivity extends Activity
11 {
12 @Override
13 public void onCreate(Bundle savedInstanceState)
14 {
15 super.onCreate(savedInstanceState);
16 setContentView(R.layout.configuration);
17 int port = getIntent().getIntExtra("port", 0);
18 String msg1 = getString(R.string.msg_notraffic);
19 String msg2 = getString(R.string.msg_configuration, port);
20 ((TextView) findViewById(R.id.message_text)).setText(msg1 + " " + msg2);
21 }
22
23 public void onOk(View view)
24 {
25 finish();
26 }
27
28 public void onHelp(View view)
29 {
30 Uri uri = Uri.parse(getString(R.string.configuring_proxy_url));
31 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
Felix Dahlke 2012/09/18 15:32:49 Why make intent final here?
32 startActivity(intent);
33 finish();
34 }
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld