13 lines
326 B
Java
13 lines
326 B
Java
|
package androidx.core.content.res;
|
||
|
|
||
|
import android.content.res.Resources;
|
||
|
import androidx.annotation.NonNull;
|
||
|
public final class ConfigurationHelper {
|
||
|
private ConfigurationHelper() {
|
||
|
}
|
||
|
|
||
|
public static int getDensityDpi(@NonNull Resources resources) {
|
||
|
return resources.getConfiguration().densityDpi;
|
||
|
}
|
||
|
}
|