Java Code Examples for android.app.Activity#finishAfterTransition()

The following examples show how to use android.app.Activity#finishAfterTransition() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApiCompatibilityUtils.java    From cronet with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @see android.app.Activity#finishAfterTransition().
 */
public static void finishAfterTransition(Activity activity) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        activity.finishAfterTransition();
    } else {
        activity.finish();
    }
}
 
Example 2
Source File: ApiCompatibilityUtils.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * @see android.app.Activity#finishAfterTransition().
 */
public static void finishAfterTransition(Activity activity) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        activity.finishAfterTransition();
    } else {
        activity.finish();
    }
}
 
Example 3
Source File: ActivityCompat21.java    From letv with Apache License 2.0 4 votes vote down vote up
public static void finishAfterTransition(Activity activity) {
    activity.finishAfterTransition();
}
 
Example 4
Source File: ActivityCompat21.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static void finishAfterTransition(Activity activity) {
    activity.finishAfterTransition();
}