Show Telegram Bulletin instead of Android Toast when copying ID
This commit is contained in:
@@ -2675,7 +2675,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
android.content.ClipboardManager clipboard = (android.content.ClipboardManager) ApplicationLoader.applicationContext.getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
android.content.ClipData clip = android.content.ClipData.newPlainText("label", did + "");
|
||||
clipboard.setPrimaryClip(clip);
|
||||
Toast.makeText(getParentActivity(), LocaleController.getString("TextCopied", R.string.TextCopied), Toast.LENGTH_SHORT).show();
|
||||
BulletinFactory.of(this).createCopyBulletin(LocaleController.formatString("TextCopied", R.string.TextCopied)).show();
|
||||
} catch (Exception e) {
|
||||
FileLog.e(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user