mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-23 00:24:26 +01:00
Plurals fixed in GLS and CGMS
This commit is contained in:
@@ -275,7 +275,11 @@ public class CGMService extends BleProfileService implements CGMSManagerCallback
|
||||
|
||||
@Override
|
||||
public void onNumberOfRecordsRequested(@NonNull final BluetoothDevice device, final int value) {
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
if (value == 0)
|
||||
showToast(R.string.gls_progress_zero);
|
||||
else
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -191,7 +191,10 @@ public class GlucoseActivity extends BleProfileExpandableListActivity implements
|
||||
|
||||
@Override
|
||||
public void onNumberOfRecordsRequested(final BluetoothDevice device, final int value) {
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
if (value == 0)
|
||||
showToast(R.string.gls_progress_zero);
|
||||
else
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user