@@ -36,6 +36,7 @@ public class LogActivity extends BaseBackActivity {
3636 private boolean head = true ;
3737 private boolean file = false ;
3838 private boolean border = true ;
39+ private boolean single = true ;
3940 private int consoleFilter = LogUtils .V ;
4041 private int fileFilter = LogUtils .V ;
4142
@@ -46,8 +47,9 @@ public class LogActivity extends BaseBackActivity {
4647 private static final int UPDATE_FILE = 0x01 << 4 ;
4748 private static final int UPDATE_DIR = 0x01 << 5 ;
4849 private static final int UPDATE_BORDER = 0x01 << 6 ;
49- private static final int UPDATE_CONSOLE_FILTER = 0x01 << 7 ;
50- private static final int UPDATE_FILE_FILTER = 0x01 << 8 ;
50+ private static final int UPDATE_SINGLE = 0x01 << 7 ;
51+ private static final int UPDATE_CONSOLE_FILTER = 0x01 << 8 ;
52+ private static final int UPDATE_FILE_FILTER = 0x01 << 9 ;
5153
5254 private Runnable mRunnable = new Runnable () {
5355 @ Override
@@ -98,6 +100,7 @@ public void initView(Bundle savedInstanceState, View view) {
98100 findViewById (R .id .btn_toggle_tag ).setOnClickListener (this );
99101 findViewById (R .id .btn_toggle_head ).setOnClickListener (this );
100102 findViewById (R .id .btn_toggle_border ).setOnClickListener (this );
103+ findViewById (R .id .btn_toggle_single ).setOnClickListener (this );
101104 findViewById (R .id .btn_toggle_file ).setOnClickListener (this );
102105 findViewById (R .id .btn_toggle_dir ).setOnClickListener (this );
103106 findViewById (R .id .btn_toggle_conole_filter ).setOnClickListener (this );
@@ -143,6 +146,9 @@ public void onWidgetClick(View view) {
143146 case R .id .btn_toggle_border :
144147 updateConfig (UPDATE_BORDER );
145148 break ;
149+ case R .id .btn_toggle_single :
150+ updateConfig (UPDATE_SINGLE );
151+ break ;
146152 case R .id .btn_toggle_conole_filter :
147153 updateConfig (UPDATE_CONSOLE_FILTER );
148154 break ;
@@ -242,6 +248,9 @@ private void updateConfig(int args) {
242248 case UPDATE_BORDER :
243249 border = !border ;
244250 break ;
251+ case UPDATE_SINGLE :
252+ single = !single ;
253+ break ;
245254 case UPDATE_CONSOLE_FILTER :
246255 consoleFilter = consoleFilter == LogUtils .V ? LogUtils .W : LogUtils .V ;
247256 break ;
@@ -256,6 +265,7 @@ private void updateConfig(int args) {
256265 .setLog2FileSwitch (file )
257266 .setDir (dir )
258267 .setBorderSwitch (border )
268+ .setSingleTagSwitch (single )
259269 .setConsoleFilter (consoleFilter )
260270 .setFileFilter (fileFilter );
261271 tvAboutLog .setText (mConfig .toString ());
0 commit comments