File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
java/com/radio/codec2talkie/storage/log Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .radio .codec2talkie .storage .log ;
2
2
3
3
import android .content .DialogInterface ;
4
+ import android .content .Intent ;
4
5
import android .os .Bundle ;
5
6
import android .view .Menu ;
6
7
import android .view .MenuItem ;
@@ -83,6 +84,14 @@ public boolean onCreateOptionsMenu(Menu menu) {
83
84
return true ;
84
85
}
85
86
87
+ @ Override
88
+ public boolean onPrepareOptionsMenu (Menu menu ) {
89
+ if (_groupName != null ) {
90
+ menu .findItem (R .id .log_view_menu_stations ).setVisible (false );
91
+ }
92
+ return super .onPrepareOptionsMenu (menu );
93
+ }
94
+
86
95
@ Override
87
96
public boolean onOptionsItemSelected (MenuItem item )
88
97
{
@@ -95,6 +104,11 @@ public boolean onOptionsItemSelected(MenuItem item)
95
104
else if (itemId == R .id .log_view_menu_clear ) {
96
105
deleteAll ();
97
106
return true ;
107
+ } else if (itemId == R .id .log_view_menu_stations ) {
108
+ Intent logItemIntent = new Intent (this , LogItemActivity .class );
109
+ logItemIntent .putExtra ("groupName" , getString (R .string .log_view_station_history ));
110
+ startActivity (logItemIntent );
111
+ return true ;
98
112
}
99
113
return super .onOptionsItemSelected (item );
100
114
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<menu xmlns : android =" http://schemas.android.com/apk/res/android" >
3
+ <item
4
+ android : id =" @+id/log_view_menu_stations"
5
+ android : title =" @string/log_view_menu_stations" />
3
6
<item
4
7
android : id =" @+id/log_view_menu_clear"
5
8
android : title =" @string/log_view_menu_clear" />
Original file line number Diff line number Diff line change 249
249
<string name =" app_service_notif_text_ptt_ready" >Connected to the TNC, ready for PTT</string >
250
250
<string name =" app_service_notif_text_tracking" >APRS tracking is active</string >
251
251
<string name =" app_service_notif_connection_lost" >Disconnected from the TNC, click to reconnect</string >
252
- <string name =" aprs_log_view_title" >APRS raw log</string >
252
+ <string name =" aprs_log_view_title" >APRS log</string >
253
253
<string name =" log_view_menu_clear" >Clear log</string >
254
254
<string name =" tracking_label" >🏁 </string >
255
255
<string name =" app_notifications_voice_enable_title" >Enable incoming notifications</string >
286
286
<string name =" messages_group_activity_delete_group_confirmation_title" >This will remove all messages from %s. Are you sure?</string >
287
287
<string name =" log_item_textview_title" >Station history</string >
288
288
<string name =" log_item_group_textview_title" >Station SSIDS</string >
289
+ <string name =" log_view_menu_stations" >View stations</string >
290
+ <string name =" log_view_station_history" >Station history</string >
289
291
</resources >
You can’t perform that action at this time.
0 commit comments