mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-23 17:34:28 +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) {
|
||||
if (value == 0)
|
||||
showToast(R.string.gls_progress_zero);
|
||||
else
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -191,6 +191,9 @@ public class GlucoseActivity extends BleProfileExpandableListActivity implements
|
||||
|
||||
@Override
|
||||
public void onNumberOfRecordsRequested(final BluetoothDevice device, final int value) {
|
||||
if (value == 0)
|
||||
showToast(R.string.gls_progress_zero);
|
||||
else
|
||||
showToast(getResources().getQuantityString(R.plurals.gls_progress, value, value));
|
||||
}
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
<string name="gls_context_hba1c_title">HbA1c</string>
|
||||
<string name="gls_context_hba1c">%f%%</string>
|
||||
|
||||
<string name="gls_progress_zero">No records found</string>
|
||||
<plurals name="gls_progress">
|
||||
<item quantity="zero">No records found</item>
|
||||
<item quantity="one">Downloading %d record</item>
|
||||
|
||||
Reference in New Issue
Block a user