Move entryvalues_font_size to SettingsLib (1/2)

Since creating the seekbar for changing font size in SystemUI requires
the size of the value entry array and the values in the array.
Therefore, we move the resource to SettingsLib to share the usage.

Bug: 242326166
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FontSizeDataTest
Test: Maually test the availability of changing font size through
Settings page

Change-Id: If630bd9c9c27823c210410b53342b921a11bbfb9
This commit is contained in:
chihtinglo
2023-02-09 16:50:44 +08:00
parent 6686dcc1fc
commit 44ebe53cb8
2 changed files with 1 additions and 13 deletions

View File

@@ -105,18 +105,6 @@
<item>1800000</item> <item>1800000</item>
</string-array> </string-array>
<!-- NOTE: if you change this, you must also add the corresponding scale key and lookup table to
frameworks/base/core/java/android/content/res/FontScaleLookupTableFactory.java -->
<string-array name="entryvalues_font_size" translatable="false">
<item>0.85</item>
<item>1.0</item>
<item>1.15</item>
<item>1.30</item>
<item>1.50</item>
<item>1.80</item>
<item>2.0</item>
</string-array>
<!-- Wi-Fi settings --> <!-- Wi-Fi settings -->
<!-- Match this with the order of NetworkInfo.DetailedState. --> <skip /> <!-- Match this with the order of NetworkInfo.DetailedState. --> <skip />

View File

@@ -21,7 +21,7 @@ import android.content.Context;
import android.content.res.Resources; import android.content.res.Resources;
import android.provider.Settings; import android.provider.Settings;
import com.android.settings.R; import com.android.settingslib.R;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;