List of usage examples for android.app Activity getChangingConfigurations
public int getChangingConfigurations()
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 www . j av a 2 s. c om*/ configurationChanged = activity.isChangingConfigurations(); } return mAttachedActivities.size() == 0 && !configurationChanged; }