Add tabs to log fragment

This commit is contained in:
topjohnwu
2017-01-27 03:38:53 +08:00
parent 959ed7f866
commit ca9334b2df
13 changed files with 430 additions and 258 deletions

View File

@@ -176,12 +176,11 @@ public class StatusFragment extends Fragment implements CallbackHandler.EventLis
rootStatusText.setText(R.string.not_rooted);
break;
case 1:
List<String> stats = Shell.sh("su -v");
if (Utils.isValidShellResponse(stats)) {
if (Global.Info.suVersion != null) {
color = colorOK;
image = R.drawable.ic_check_circle;
rootStatusText.setText(R.string.proper_root);
rootInfoText.setText(stats.get(0));
rootInfoText.setText(Global.Info.suVersion);
break;
}
case -1: