mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Fix build error
This commit is contained in:
parent
f6fd1c152b
commit
116591b01b
@ -885,7 +885,7 @@ public class MCLauncherActivity extends AppCompatActivity
|
|||||||
aboutB.setTitle(R.string.mcl_option_about);
|
aboutB.setTitle(R.string.mcl_option_about);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
aboutB.setMessage(String.format(getAssetManager().loadAsset("about_en.txt"),
|
aboutB.setMessage(String.format(Tools.read(getAssets().open("about_en.txt")),
|
||||||
Tools.APP_NAME,
|
Tools.APP_NAME,
|
||||||
Tools.usingVerName,
|
Tools.usingVerName,
|
||||||
org.lwjgl.Sys.getVersion())
|
org.lwjgl.Sys.getVersion())
|
||||||
|
@ -362,6 +362,11 @@ public final class Tools
|
|||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String read(InputStream is) throws Exception
|
||||||
|
{
|
||||||
|
return new String(getByteArray(is));
|
||||||
|
}
|
||||||
|
|
||||||
public static String read(String path) throws Exception
|
public static String read(String path) throws Exception
|
||||||
{
|
{
|
||||||
return new String(getByteArray(path));
|
return new String(getByteArray(path));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user