v0.7.1d: moved debug flags to devicecompat, added flag for load screen
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user