mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-11 19:24:06 +02:00
if no user was selected don't show the received weight
This commit is contained in:
@@ -205,7 +205,7 @@ public class MainActivity extends ActionBarActivity implements
|
|||||||
ScaleData scaleBtData = (ScaleData) msg.obj;
|
ScaleData scaleBtData = (ScaleData) msg.obj;
|
||||||
|
|
||||||
if (OpenScale.getInstance(getApplicationContext()).addScaleData(scaleBtData) == -1) {
|
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;
|
break;
|
||||||
case BluetoothCommunication.BT_INIT_PROCESS:
|
case BluetoothCommunication.BT_INIT_PROCESS:
|
||||||
|
Reference in New Issue
Block a user