1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-11 11:14:03 +02:00

if no user was selected don't show the received weight

This commit is contained in:
OliE
2016-12-27 16:05:47 +01:00
parent a3b9cfa0c0
commit 8afd28d42a

View File

@@ -205,7 +205,7 @@ public class MainActivity extends ActionBarActivity implements
ScaleData scaleBtData = (ScaleData) msg.obj;
if (OpenScale.getInstance(getApplicationContext()).addScaleData(scaleBtData) == -1) {
Toast.makeText(getApplicationContext(), getResources().getString(R.string.info_no_selected_user) + "(" + getResources().getString(R.string.label_weight) + ": " + scaleBtData.weight + ")", Toast.LENGTH_SHORT).show();
Toast.makeText(getApplicationContext(), getResources().getString(R.string.info_no_selected_user), Toast.LENGTH_SHORT).show();
}
break;
case BluetoothCommunication.BT_INIT_PROCESS: