mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-20 19:40:32 +00:00
Refresh logs page after clearing
This commit is contained in:
@@ -101,6 +101,7 @@ public class MagiskLogFragment extends BaseFragment {
|
|||||||
|
|
||||||
private void clearLogs() {
|
private void clearLogs() {
|
||||||
Shell.su("echo -n > " + Const.MAGISK_LOG).submit();
|
Shell.su("echo -n > " + Const.MAGISK_LOG).submit();
|
||||||
|
txtLog.setText(R.string.log_is_empty);
|
||||||
SnackbarMaker.make(rv, R.string.logs_cleared, Snackbar.LENGTH_SHORT).show();
|
SnackbarMaker.make(rv, R.string.logs_cleared, Snackbar.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user