Update illustrations in Private Space setup & settings
This inlcudes the changes to use latest private space icon and update the illustrations in private space setup and settings. Change made to update illustrations dynamically between light and dark theme. Recordings link: b/332867167#comment3 Bug: 332867167 Test: Manual Change-Id: I6387c9991ec9bb419f446431926f99843f92c859
This commit is contained in:
@@ -26,10 +26,12 @@ import android.widget.Toast;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settingslib.widget.IllustrationPreference;
|
||||
|
||||
/** Fragment representing the Private Space dashboard in Settings. */
|
||||
public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
||||
private static final String TAG = "PSDashboardFragment";
|
||||
private static final String PRIVATE_SPACE_ILLUSTRATION_KEY = "private_space_illustration";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
@@ -60,6 +62,14 @@ public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
final IllustrationPreference illustrationPreference =
|
||||
getPreferenceScreen().findPreference(PRIVATE_SPACE_ILLUSTRATION_KEY);
|
||||
illustrationPreference.applyDynamicColor();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getPreferenceScreenResId() {
|
||||
return R.xml.private_space_settings;
|
||||
|
Reference in New Issue
Block a user