Skip to content

Commit

Permalink
添加计数器
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed Apr 2, 2020
1 parent d46c438 commit 2ad0861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ private void receive_handle(JsonObject result_obj) {
break;
case "/ping":
case "/getinfo":
request_body.text = getString(R.string.system_message_head) + "\n" + context.getString(R.string.current_battery_level) + get_battery_info(context) + "\n" + getString(R.string.current_network_connection_status) + public_func.get_network_type(context) + "\nSIM:" + public_func.get_sim_name(context);
String spam_count = "";
ArrayList<String> spam_list = Paper.book().read("spam_sms_list", new ArrayList<>());
if (spam_list.size() != 0) {
spam_count = "\n" + getString(R.string.spam_count_title) + spam_list.size();
}
request_body.text = getString(R.string.system_message_head) + "\n" + context.getString(R.string.current_battery_level) + get_battery_info(context) + "\n" + getString(R.string.current_network_connection_status) + public_func.get_network_type(context) + spam_count + "\nSIM:" + public_func.get_sim_name(context);
has_command = true;
break;
case "/log":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ static class view_holder {
TextView package_name;
CheckBox app_checkbox;
}

}

static class app_info {
Expand Down

0 comments on commit 2ad0861

Please sign in to comment.