Skip to content

Commit

Permalink
add utility function (currently unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
edeso committed Nov 9, 2023
1 parent 666cb0e commit dfa3606
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/com/nkanaev/comics/managers/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ public static String secondsSinceString( long i ){
return String.format("%.2f", milliSecondsSince(i)/1000f);
}

public static double getGLEsVersion() {
double version = Double.parseDouble(((ActivityManager) MainApplication.getAppContext().getSystemService(Context.ACTIVITY_SERVICE)).getDeviceConfigurationInfo().getGlEsVersion());
return version;
}

private static int glMaxTextureSize = -1;

public static int glMaxTextureSize(){
Expand Down

0 comments on commit dfa3606

Please sign in to comment.