Fixed scale

This commit is contained in:
M66B 2016-03-03 12:17:42 +01:00
parent 99ff31aad6
commit 04242b1680
1 changed files with 3 additions and 3 deletions

View File

@ -870,7 +870,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setStyle(Paint.Style.STROKE);
// Draw base line
// Draw scale line
paint.setStrokeWidth(Util.dips2pixels(1, SinkholeService.this));
paint.setColor(ContextCompat.getColor(SinkholeService.this, R.color.colorGrayed));
float y = height / 2;
@ -896,9 +896,9 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
remoteViews.setTextViewText(R.id.tvRx, getString(R.string.msg_mbsec, rxsec / 1000 / 1000));
if (max < 1000 * 1000)
remoteViews.setTextViewText(R.id.tvMax, getString(R.string.msg_kbsec, max / 1000));
remoteViews.setTextViewText(R.id.tvMax, getString(R.string.msg_kbsec, max / 2 / 1000));
else
remoteViews.setTextViewText(R.id.tvMax, getString(R.string.msg_mbsec, max / 1000 / 1000));
remoteViews.setTextViewText(R.id.tvMax, getString(R.string.msg_mbsec, max / 2 / 1000 / 1000));
// Show session/file count
if (filter && loglevel <= Log.WARN) {