summaryrefslogtreecommitdiff
path: root/src/se/leap/openvpn/MainActivity.java
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-01-22 22:26:08 -0700
committerSean Leonard <meanderingcode@aetherislands.net>2013-01-22 22:26:08 -0700
commit2bb6e8c9a956c56658807c7f2d25ab850243bbe6 (patch)
tree9e3a2e318d0503b33d94514836b8a9bc2db8aaa6 /src/se/leap/openvpn/MainActivity.java
parent613543d9c00e607f25e7f745a60fb4e3ec3b5148 (diff)
Start rebranding: a whole lotta string replacement, moving src/ file tree
Diffstat (limited to 'src/se/leap/openvpn/MainActivity.java')
-rw-r--r--src/se/leap/openvpn/MainActivity.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/se/leap/openvpn/MainActivity.java b/src/se/leap/openvpn/MainActivity.java
new file mode 100644
index 00000000..d33fd832
--- /dev/null
+++ b/src/se/leap/openvpn/MainActivity.java
@@ -0,0 +1,44 @@
+package se.leap.openvpn;
+
+import java.util.List;
+import se.leap.leapclient.R;
+
+import android.content.Intent;
+import android.preference.PreferenceActivity;
+
+public class MainActivity extends PreferenceActivity {
+
+ @Override
+ public void onBuildHeaders(List<Header> target) {
+ loadHeadersFromResource(R.xml.main_headers, target);
+
+
+ String translatedby = getString(R.string.translationby);
+ if(!translatedby.equals("") && !translatedby.contains("Arne Schwabe")) {
+ Header translation = new Header();
+ translation.title = getString(R.string.translation);
+ translation.summary = translatedby;
+ target.add(translation);
+ }
+
+ if(SendDumpActivity.getLastestDump(this)!=null) {
+ Header sendDump = new Header();
+ sendDump.titleRes = R.string.send_minidump;
+ sendDump.summaryRes = R.string.send_minidump_summary;
+ sendDump.intent = new Intent(this,SendDumpActivity.class);
+ target.add(sendDump);
+ }
+
+ }
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+ super.onActivityResult(requestCode, resultCode, data);
+
+ System.out.println(data);
+
+
+ }
+
+
+}