* commit '4b34804b5124f8b71b14d4fbacedb948e5ec6820': Add no data usage string
This commit is contained in:
@@ -516,6 +516,9 @@ public class InstalledAppDetails extends AppInfoBase
|
||||
private CharSequence getDataSummary() {
|
||||
if (mChartData != null) {
|
||||
long totalBytes = mChartData.detail.getTotalBytes();
|
||||
if (totalBytes == 0) {
|
||||
return getString(R.string.no_data_usage);
|
||||
}
|
||||
Context context = getActivity();
|
||||
return getString(R.string.data_summary_format,
|
||||
Formatter.formatFileSize(context, totalBytes),
|
||||
|
Reference in New Issue
Block a user