Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / utils / RuntimePermissionUtil.kt
package jackall.moncalc.utils

import android.content.Context
import android.os.Build
import android.provider.Settings


/**
 * Created by matsumoto_k on 2017/11/06.
 */
class RuntimePermissionUtil {

    companion object {
        fun checkOverlayPermission(context: Context): Boolean {
            if (Build.VERSION.SDK_INT < 23) {
                return true
            }
            return Settings.canDrawOverlays(context)
        }
    }
}