mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Improve wallpaper settings screen, conversation rendering.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
committed by
Greyson Parrelli
parent
6bcb0de43d
commit
b5712f4bd1
@@ -0,0 +1,26 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import androidx.activity.ComponentActivity;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
|
||||
public final class ActivityTransitionUtil {
|
||||
|
||||
private ActivityTransitionUtil() {}
|
||||
|
||||
/**
|
||||
* To be used with finish
|
||||
*/
|
||||
public static void setSlideOutTransition(@NonNull ComponentActivity activity) {
|
||||
activity.overridePendingTransition(R.anim.slide_from_start, R.anim.slide_to_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* To be used with startActivity
|
||||
*/
|
||||
public static void setSlideInTransition(@NonNull ComponentActivity activity) {
|
||||
activity.overridePendingTransition(R.anim.slide_from_end, R.anim.slide_to_start);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user