mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Fix [control]: Always update the control scale in the builder
This fixes the controls being wrongly placed when quickly changing the scale
This commit is contained in:
parent
7f46c6d7bd
commit
804d349b2e
1 changed files with 2 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ public class ControlData {
|
|||
keyValueMap.put("screen_width", "DUMMY_DATA" );
|
||||
keyValueMap.put("screen_height", "DUMMY_DATA");
|
||||
keyValueMap.put("margin", Integer.toString((int) Tools.dpToPx(2)));
|
||||
keyValueMap.put("preferred_scale", Float.toString(LauncherPreferences.PREF_BUTTONSIZE));
|
||||
keyValueMap.put("preferred_scale", "DUMMY_DATA");
|
||||
|
||||
conversionMap = new WeakReference<>(keyValueMap);
|
||||
}
|
||||
|
|
@ -295,6 +295,7 @@ public class ControlData {
|
|||
valueMap.put("height", Float.toString(getHeight()));
|
||||
valueMap.put("screen_width",Integer.toString(CallbackBridge.physicalWidth));
|
||||
valueMap.put("screen_height",Integer.toString(CallbackBridge.physicalHeight));
|
||||
valueMap.put("preferred_scale", Float.toString(LauncherPreferences.PREF_BUTTONSIZE));
|
||||
|
||||
return valueMap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue