1 |
|
|
2 |
|
package pl.magot.vetch.ancal.activities; |
3 |
|
|
4 |
|
|
5 |
|
import pl.magot.vetch.ancal.CommonActivity; |
6 |
|
import pl.magot.vetch.ancal.R; |
7 |
|
import pl.magot.vetch.ancal.Utils; |
8 |
|
import android.os.Bundle; |
9 |
|
import android.widget.TextView; |
10 |
|
|
11 |
|
|
12 |
|
|
|
|
| 93,8% |
Uncovered Elements: 1 (16) |
Complexity: 5 |
Complexity Density: 0,45 |
|
13 |
|
public class ActivityAbout extends CommonActivity |
14 |
|
{ |
15 |
|
|
16 |
|
private TextView txtView = null; |
17 |
|
private TextView txtVersionLabel = null; |
18 |
|
|
19 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
|
20 |
1
|
@Override... |
21 |
|
public void onCreate(Bundle icicle) |
22 |
|
{ |
23 |
1
|
super.onCreate(icicle); |
24 |
1
|
setContentView(R.layout.about); |
25 |
|
|
26 |
|
|
27 |
1
|
InitViews(); |
28 |
|
} |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
30 |
1
|
@Override... |
31 |
|
public void onStart() |
32 |
|
{ |
33 |
1
|
super.onStart(); |
34 |
|
|
35 |
1
|
InitState(); |
36 |
|
} |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
38 |
1
|
private void InitViews()... |
39 |
|
{ |
40 |
1
|
txtView = (TextView)findViewById(R.id.txtViewAbout); |
41 |
1
|
txtVersionLabel = (TextView)findViewById(R.id.txtVersionLabel); |
42 |
|
} |
43 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,25 |
|
44 |
1
|
private void InitState()... |
45 |
|
{ |
46 |
1
|
String sSubTitle = utils.GetResStr(R.string.titleDefaultAbout); |
47 |
1
|
SetActivityTitle(sSubTitle); |
48 |
|
|
49 |
1
|
txtVersionLabel.setText(Utils.getAppVersionName(this)); |
50 |
|
|
51 |
1
|
txtView.requestFocus(); |
52 |
|
} |
53 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
54 |
0
|
@Override... |
55 |
|
protected void restoreStateFromFreeze() |
56 |
|
{ |
57 |
|
|
58 |
|
} |
59 |
|
|
60 |
|
} |