Remove animation from private space settings page
Screenshot : go/ss/5HeSbdABvUX3iw8.png Bug: 337866252 Test: Manual Change-Id: If54ff5f2e309b9ac4dd83ff3bbf53812031732c6
This commit is contained in:
@@ -22,16 +22,10 @@
|
|||||||
android:title="@string/private_space_title"
|
android:title="@string/private_space_title"
|
||||||
settings:searchable="false">
|
settings:searchable="false">
|
||||||
|
|
||||||
<com.android.settingslib.widget.IllustrationPreference
|
<com.android.settingslib.widget.TopIntroPreference
|
||||||
android:key="private_space_illustration"
|
|
||||||
settings:searchable="false"
|
|
||||||
settings:lottie_rawRes="@raw/private_space_illustration"/>
|
|
||||||
|
|
||||||
<Preference
|
|
||||||
android:key="private_space_description"
|
android:key="private_space_description"
|
||||||
android:summary="@string/private_space_description"
|
android:title="@string/private_space_description"
|
||||||
android:selectable="false"
|
settings:searchable="false"/>
|
||||||
settings:searchable="false" />
|
|
||||||
|
|
||||||
<PreferenceCategory
|
<PreferenceCategory
|
||||||
android:title="@string/private_space_category_lock">
|
android:title="@string/private_space_category_lock">
|
||||||
|
@@ -26,12 +26,10 @@ import android.widget.Toast;
|
|||||||
|
|
||||||
import com.android.settings.R;
|
import com.android.settings.R;
|
||||||
import com.android.settings.dashboard.DashboardFragment;
|
import com.android.settings.dashboard.DashboardFragment;
|
||||||
import com.android.settingslib.widget.IllustrationPreference;
|
|
||||||
|
|
||||||
/** Fragment representing the Private Space dashboard in Settings. */
|
/** Fragment representing the Private Space dashboard in Settings. */
|
||||||
public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
||||||
private static final String TAG = "PSDashboardFragment";
|
private static final String TAG = "PSDashboardFragment";
|
||||||
private static final String PRIVATE_SPACE_ILLUSTRATION_KEY = "private_space_illustration";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle icicle) {
|
public void onCreate(Bundle icicle) {
|
||||||
@@ -63,14 +61,6 @@ public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onResume() {
|
|
||||||
super.onResume();
|
|
||||||
final IllustrationPreference illustrationPreference =
|
|
||||||
getPreferenceScreen().findPreference(PRIVATE_SPACE_ILLUSTRATION_KEY);
|
|
||||||
illustrationPreference.applyDynamicColor();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getPreferenceScreenResId() {
|
protected int getPreferenceScreenResId() {
|
||||||
return R.xml.private_space_settings;
|
return R.xml.private_space_settings;
|
||||||
|
Reference in New Issue
Block a user