1 package com.android.wallpaper.util
2 
3 import android.content.Context
4 import android.view.View
5 
6 object RtlUtils {
7 
8     /**
9      * Returns whether layout direction is RTL (or false for LTR). Since native RTL layout support
10      * was added in API 17, returns false for versions lower than 17.
11      */
12     @JvmStatic
isRtlnull13     fun isRtl(context: Context): Boolean {
14         return (context.resources.configuration.layoutDirection == View.LAYOUT_DIRECTION_RTL)
15     }
16 }
17