Update Android Settings for the latest Extra App Info design
Bug: b/185793841 Test: Settings -> Apps -> APP -> Extra App Info Change-Id: I2067f7d5d773e2fd9c817504dda262fb5fd7e033
This commit is contained in:
@@ -34,4 +34,9 @@ public interface ExtraAppInfoFeatureProvider {
|
||||
* Sets the package name
|
||||
*/
|
||||
void setPackageName(String packageName);
|
||||
|
||||
/**
|
||||
* gets the summary name
|
||||
*/
|
||||
String getSummary(Context context);
|
||||
}
|
||||
|
@@ -37,4 +37,9 @@ public class ExtraAppInfoFeatureProviderImpl implements
|
||||
public void setPackageName(String packageName) {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSummary(Context context) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
@@ -50,6 +50,11 @@ public class ExtraAppInfoPreferenceController extends BasePreferenceController {
|
||||
return super.handlePreferenceTreeClick(preference);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
return mExtraAppInfoFeatureProvider.getSummary(mContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the local package name
|
||||
*/
|
||||
|
Reference in New Issue
Block a user