3
3
import android .annotation .SuppressLint ;
4
4
import android .app .AlertDialog ;
5
5
import android .app .ListActivity ;
6
+ import android .content .DialogInterface ;
6
7
import android .content .Intent ;
7
8
import android .content .SharedPreferences ;
8
9
import android .content .SharedPreferences .Editor ;
@@ -63,7 +64,13 @@ public void onListItemClick(ListView parent, View v, int position, long id) {
63
64
Log .d (LOG_TAG , "Debug is now on" );
64
65
new AlertDialog .Builder (this )
65
66
.setMessage (instructionsString )
66
- .setTitle (instructionsTitle ).show ();
67
+ .setTitle (instructionsTitle )
68
+ .setPositiveButton (R .string .ok , new DialogInterface .OnClickListener () {
69
+ public void onClick (DialogInterface dialog , int id ) {
70
+ dialog .cancel ();
71
+ }
72
+ })
73
+ .show ();
67
74
break ;
68
75
case 4 :
69
76
boolean debugPref = sharedPref .getBoolean (Common .PACKAGE_NAME
@@ -85,6 +92,18 @@ public void onListItemClick(ListView parent, View v, int position, long id) {
85
92
debugStatus ,
86
93
Toast .LENGTH_LONG ).show ();
87
94
break ;
95
+ case 5 :
96
+ String aboutMsg = getString (R .string .app_name ) + ": " + BuildConfig .VERSION_NAME ; //TODO!
97
+ new AlertDialog .Builder (this )
98
+ .setMessage (aboutMsg )
99
+ .setTitle (R .string .about )
100
+ .setPositiveButton (R .string .ok , new DialogInterface .OnClickListener () {
101
+ public void onClick (DialogInterface dialog , int id ) {
102
+ dialog .cancel ();
103
+ }
104
+ })
105
+ .show ();
106
+ break ;
88
107
default :
89
108
break ;
90
109
}
0 commit comments