Revision ac4c7a1d
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/main/RubikObjectLibInterface.java | ||
---|---|---|
10 | 10 |
package org.distorted.main; |
11 | 11 |
|
12 | 12 |
import android.os.Bundle; |
13 |
import android.util.DisplayMetrics; |
|
14 | 13 |
|
15 | 14 |
import androidx.annotation.NonNull; |
16 | 15 |
|
... | ... | |
514 | 513 |
d.setArguments(bundle); |
515 | 514 |
d.show( act.getSupportFragmentManager(), RubikDialogNewRecord.getDialogTag() ); |
516 | 515 |
} |
517 |
|
|
518 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
519 |
|
|
520 |
public int getScreenDensity() |
|
521 |
{ |
|
522 |
DisplayMetrics dm = new DisplayMetrics(); |
|
523 |
mAct.get().getWindowManager().getDefaultDisplay().getMetrics(dm); |
|
524 |
return dm.densityDpi; |
|
525 |
} |
|
526 | 516 |
} |
Also available in: Unified diff
Separate a OSInterface from LibInterface