Schematize Display system properties
Properties accessed across partitions are now schematized and will become APIs to make explicit interfaces among partitions. Bug: 117924132 Test: m -j Change-Id: I83b40ddfcde32d8d03fae73f5c252013933c466c
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
package com.android.settings.development;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
import android.provider.Settings;
|
||||
import android.sysprop.DisplayProperties;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.preference.Preference;
|
||||
@@ -79,8 +79,6 @@ public class RtlLayoutPreferenceController extends DeveloperOptionsPreferenceCon
|
||||
Settings.Global.putInt(mContext.getContentResolver(),
|
||||
Settings.Global.DEVELOPMENT_FORCE_RTL,
|
||||
isEnabled ? SETTING_VALUE_ON : SETTING_VALUE_OFF);
|
||||
SystemProperties.set(Settings.Global.DEVELOPMENT_FORCE_RTL,
|
||||
isEnabled ? Integer.toString(SETTING_VALUE_ON)
|
||||
: Integer.toString(SETTING_VALUE_OFF));
|
||||
DisplayProperties.debug_force_rtl(isEnabled);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user