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

The following examples show how to use android.app.Activity#finishAfterTransition() . These examples are extracted from open source projects. 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
/**
 * @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
/**
 * @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 Project: letv   File: ActivityCompat21.java    License: Apache License 2.0 4 votes vote down vote up
public static void finishAfterTransition(Activity activity) {
    activity.finishAfterTransition();
}
 
Example 4
public static void finishAfterTransition(Activity activity) {
    activity.finishAfterTransition();
}