Fix cell data limit dialog title
Change-Id: I0303bc74bb7b0e46ed020d255baf2465c7db0fc5 Fixes: 27604216
This commit is contained in:
@@ -173,11 +173,13 @@ public class BillingCycleSettings extends DataUsageBase implements
|
|||||||
|
|
||||||
|
|
||||||
final LayoutInflater dialogInflater = LayoutInflater.from(context);
|
final LayoutInflater dialogInflater = LayoutInflater.from(context);
|
||||||
|
final boolean isLimit = getArguments().getBoolean(EXTRA_LIMIT);
|
||||||
mView = dialogInflater.inflate(R.layout.data_usage_bytes_editor, null, false);
|
mView = dialogInflater.inflate(R.layout.data_usage_bytes_editor, null, false);
|
||||||
setupPicker((EditText) mView.findViewById(R.id.bytes),
|
setupPicker((EditText) mView.findViewById(R.id.bytes),
|
||||||
(Spinner) mView.findViewById(R.id.size_spinner));
|
(Spinner) mView.findViewById(R.id.size_spinner));
|
||||||
return new AlertDialog.Builder(context)
|
return new AlertDialog.Builder(context)
|
||||||
.setTitle(R.string.data_usage_warning_editor_title)
|
.setTitle(isLimit ? R.string.data_usage_limit_editor_title
|
||||||
|
: R.string.data_usage_warning_editor_title)
|
||||||
.setView(mView)
|
.setView(mView)
|
||||||
.setPositiveButton(R.string.data_usage_cycle_editor_positive, this)
|
.setPositiveButton(R.string.data_usage_cycle_editor_positive, this)
|
||||||
.create();
|
.create();
|
||||||
|
Reference in New Issue
Block a user