Possibly improved screenshots
This commit is contained in:
parent
52a9c80de5
commit
5f4f71d43d
@ -725,13 +725,6 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
}
|
||||
if (currentEncryptedChat != null) {
|
||||
MediaController.getInstance().stopMediaObserver();
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT >= 14) {
|
||||
getParentActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}
|
||||
}
|
||||
if (currentUser != null) {
|
||||
MessagesController.getInstance().cancelLoadFullUser(currentUser.id);
|
||||
@ -7025,26 +7018,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
}
|
||||
|
||||
private void updateInformationForScreenshotDetector() {
|
||||
if (currentEncryptedChat == null) {
|
||||
return;
|
||||
}
|
||||
ArrayList<Long> visibleMessages = new ArrayList<>();
|
||||
if (chatListView != null) {
|
||||
int count = chatListView.getChildCount();
|
||||
for (int a = 0; a < count; a++) {
|
||||
View view = chatListView.getChildAt(a);
|
||||
MessageObject object = null;
|
||||
if (view instanceof ChatBaseCell) {
|
||||
ChatBaseCell cell = (ChatBaseCell) view;
|
||||
object = cell.getMessageObject();
|
||||
}
|
||||
if (object != null && object.getId() < 0 && object.messageOwner.random_id != 0) {
|
||||
visibleMessages.add(object.messageOwner.random_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
MediaController.getInstance().setLastEncryptedChatParams(chatEnterTime, chatLeaveTime, currentEncryptedChat, visibleMessages);
|
||||
}
|
||||
|
||||
private boolean fixLayoutInternal() {
|
||||
if (!AndroidUtilities.isTablet() && ApplicationLoader.applicationContext.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
|
Loading…
Reference in New Issue
Block a user