Example usage for android.content.res Configuration SCREENLAYOUT_LAYOUTDIR_LTR

List of usage examples for android.content.res Configuration SCREENLAYOUT_LAYOUTDIR_LTR

Introduction

In this page you can find the example usage for android.content.res Configuration SCREENLAYOUT_LAYOUTDIR_LTR.

Prototype

int SCREENLAYOUT_LAYOUTDIR_LTR

To view the source code for android.content.res Configuration SCREENLAYOUT_LAYOUTDIR_LTR.

Click Source Link

Document

Constant for #screenLayout : a #SCREENLAYOUT_LAYOUTDIR_MASK value indicating that a layout dir has been set to LTR.

Usage

From source file:io.lqd.sdk.Liquid.java

@SuppressLint("NewApi")
private boolean isApplicationInBackground(Activity activity) {
    boolean configurationChanged;
    if (Build.VERSION.SDK_INT < 11) {
        int changingConfigs = activity.getChangingConfigurations();
        configurationChanged = (changingConfigs == Configuration.SCREENLAYOUT_LAYOUTDIR_RTL
                || changingConfigs == Configuration.SCREENLAYOUT_LAYOUTDIR_LTR);
    } else {//from  w  w  w  . j av  a 2  s .c  om
        configurationChanged = activity.isChangingConfigurations();
    }
    return mAttachedActivities.size() == 0 && !configurationChanged;
}