Use preference for about phone page instead of injection.
It's faster than tile injection. The fragment comes from Settings itself, we don't have to use to injection. Bug: 118168552 Test: robotest Change-Id: If6a79dd73f8a51dbb21338a40f22dc8b8f8c8cb8
This commit is contained in:
@@ -181,25 +181,6 @@ public class MyDeviceInfoFragment extends DashboardFragment
|
||||
controller.updateDeviceName(confirm);
|
||||
}
|
||||
|
||||
private static class SummaryProvider implements SummaryLoader.SummaryProvider {
|
||||
|
||||
private final SummaryLoader mSummaryLoader;
|
||||
|
||||
public SummaryProvider(SummaryLoader summaryLoader) {
|
||||
mSummaryLoader = summaryLoader;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setListening(boolean listening) {
|
||||
if (listening) {
|
||||
mSummaryLoader.setSummary(this, DeviceModelPreferenceController.getDeviceModel());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static final SummaryLoader.SummaryProviderFactory SUMMARY_PROVIDER_FACTORY
|
||||
= (activity, summaryLoader) -> new SummaryProvider(summaryLoader);
|
||||
|
||||
/**
|
||||
* For Search.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user