v0.7.1d: moved debug flags to devicecompat, added flag for load screen

This commit is contained in:
Evan Debenham
2019-01-16 21:21:46 -05:00
parent 0cbfea7c67
commit 109e710c36
4 changed files with 14 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ import android.net.Uri;
import android.os.Build;
import android.util.Log;
import com.watabou.BuildConfig;
import com.watabou.noosa.Game;
public class DeviceCompat {
@@ -46,6 +47,10 @@ public class DeviceCompat {
return Build.VERSION.SDK_INT == Build.VERSION_CODES.FROYO;
}
public static boolean isDebug(){
return BuildConfig.DEBUG;
}
public static void openURI( String URI ){
Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( URI ) );
Game.instance.startActivity( intent );