Fix button too big

This commit is contained in:
khanhduytran0 2020-11-20 13:38:31 +07:00
parent e5fdd21284
commit c4737a212c

View File

@ -349,7 +349,7 @@ public final class Tools
// 921600 = 1280 * 720, default scale
// TODO better way to scaling
// float scaledDp = dp / 921600 * CallbackBridge.windowWidth * CallbackBridge.windowHeight;
return (dp /* scaledDp */ * ctx.getResources().getDisplayMetrics().densityDpi);
return (dp /* scaledDp */ * ctx.getResources().getDisplayMetrics().density);
}
public static void copyAssetFile(Context ctx, String fileName, String output, boolean overwrite) throws Exception