Update the layout of AppDataUsagePreference

The layout of AppDataUsagePreference including a progressbar, that's not common pattern in SettingsLib.

Bug: 365506467
Bug: 370456736
Change-Id: I28d25724067d85f8d37c3b5273d38055ba7021a6
Test: atest
Flag: EXEMPT bugfix
This commit is contained in:
Edgar Wang
2024-09-30 16:42:33 +00:00
parent 2a10845913
commit 4dc5a005c8
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ public class AppDataUsagePreference extends AppPreference {
public AppDataUsagePreference(Context context, AppItem item, int percent,
UidDetailProvider provider) {
super(context);
setLayoutResource(R.layout.preference_process_stats);
setKey("app_data_usage_" + item.key);
mItem = item;
mPercent = percent;