mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-25 07:32:46 +00:00
Minor improvement
This commit is contained in:
parent
ea16c53a03
commit
25043c4864
2 changed files with 5 additions and 1 deletions
|
@ -817,6 +817,9 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
||||||
int[] count = jni_get_stats();
|
int[] count = jni_get_stats();
|
||||||
remoteViews.setTextViewText(R.id.tvSessions, count[0] + "/" + count[1] + "/" + count[2]);
|
remoteViews.setTextViewText(R.id.tvSessions, count[0] + "/" + count[1] + "/" + count[2]);
|
||||||
remoteViews.setTextViewText(R.id.tvFiles, count[3] + "/" + count[4]);
|
remoteViews.setTextViewText(R.id.tvFiles, count[3] + "/" + count[4]);
|
||||||
|
} else {
|
||||||
|
remoteViews.setTextViewText(R.id.tvSessions, "");
|
||||||
|
remoteViews.setTextViewText(R.id.tvFiles, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show notification
|
// Show notification
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
android:padding="4dp">
|
android:padding="4dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
android:gravity="center_horizontal">
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
Loading…
Reference in a new issue