summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/MainActivity.java
blob: 57506c4f0dc1fee4aa9c8a568a4e1ab005d1d132 (plain)
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
package de.blinkt.openvpn;

import java.util.List;

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);
		
		
	}


}