v0.7.4b: cleaned up some miscellaneous android dependencies

This commit is contained in:
Evan Debenham
2019-08-01 00:40:44 -04:00
parent ec0657fcd6
commit 11efd1d0c3
4 changed files with 19 additions and 16 deletions
@@ -26,6 +26,8 @@ import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Typeface;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.graphics.Pixmap;
import com.watabou.gltextures.SmartTexture;
import com.watabou.glwrap.Matrix;
@@ -240,7 +242,7 @@ public class RenderedText extends Image {
public static void setFont(String asset){
if (asset == null) font = null;
else font = Typeface.createFromAsset(Game.instance.getAssets(), asset);
else font = Typeface.createFromAsset(((AndroidApplication)Gdx.app).getAssets(), asset);
clearCache();
}
@@ -21,6 +21,7 @@
package com.watabou.noosa;
import com.badlogic.gdx.Gdx;
import com.watabou.input.KeyEvent;
import com.watabou.utils.Signal;
@@ -72,7 +73,7 @@ public class Scene extends Group {
}
protected void onBackPressed() {
Game.instance.finish();
Gdx.app.exit();
}
protected void onMenuPressed() {