Merge "Update Android Settings for the latest Extra App Info design" into sc-dev
This commit is contained in:
@@ -13276,6 +13276,8 @@
|
|||||||
|
|
||||||
<!-- Label for extra app info settings for a specific app [CHAR LIMIT=40] -->
|
<!-- Label for extra app info settings for a specific app [CHAR LIMIT=40] -->
|
||||||
<string name="extra_app_info_label" translatable="false"></string>
|
<string name="extra_app_info_label" translatable="false"></string>
|
||||||
|
<!-- Summary for extra app info settings for a specific app [CHAR LIMIT=40] -->
|
||||||
|
<string name="extra_app_info_summary" translatable="false"></string>
|
||||||
|
|
||||||
<!-- Title for toggle controlling whether notifications are shown when an app pastes from clipboard. [CHAR LIMIT=50] -->
|
<!-- Title for toggle controlling whether notifications are shown when an app pastes from clipboard. [CHAR LIMIT=50] -->
|
||||||
<string name="show_clip_access_notification">Show clipboard access</string>
|
<string name="show_clip_access_notification">Show clipboard access</string>
|
||||||
|
@@ -83,6 +83,7 @@
|
|||||||
<Preference
|
<Preference
|
||||||
android:key="extra_app_info_settings"
|
android:key="extra_app_info_settings"
|
||||||
android:title="@string/extra_app_info_label"
|
android:title="@string/extra_app_info_label"
|
||||||
|
android:summary="@string/extra_app_info_summary"
|
||||||
settings:controller="com.android.settings.applications.appinfo.ExtraAppInfoPreferenceController" />
|
settings:controller="com.android.settings.applications.appinfo.ExtraAppInfoPreferenceController" />
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
|
@@ -34,4 +34,9 @@ public interface ExtraAppInfoFeatureProvider {
|
|||||||
* Sets the package name
|
* Sets the package name
|
||||||
*/
|
*/
|
||||||
void setPackageName(String packageName);
|
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) {
|
public void setPackageName(String packageName) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSummary(Context context) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -50,6 +50,11 @@ public class ExtraAppInfoPreferenceController extends BasePreferenceController {
|
|||||||
return super.handlePreferenceTreeClick(preference);
|
return super.handlePreferenceTreeClick(preference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CharSequence getSummary() {
|
||||||
|
return mExtraAppInfoFeatureProvider.getSummary(mContext);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the local package name
|
* Set the local package name
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user