feat: Show clipboard toast for MIUI
Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
parent
7aad3aaaa2
commit
d4c8c95256
@ -2648,7 +2648,7 @@ public class AndroidUtilities {
|
||||
// }
|
||||
|
||||
public static boolean shouldShowClipboardToast() {
|
||||
return (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || !OneUIUtilities.hasBuiltInClipboardToasts()) && Build.VERSION.SDK_INT < 32 /* TODO: Update to TIRAMISU when compileSdkVersion would be 32 */;
|
||||
return (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || !OneUIUtilities.hasBuiltInClipboardToasts()) && (Build.VERSION.SDK_INT < 32 || XiaomiUtilities.isMIUI()); /* TODO: Update to TIRAMISU when compileSdkVersion would be 32 */
|
||||
}
|
||||
|
||||
public static boolean addToClipboard(CharSequence str) {
|
||||
|
Loading…
Reference in New Issue
Block a user