Java Code Examples for org.telegram.messenger.AndroidUtilities#removeAdjustResize()
The following examples show how to use
org.telegram.messenger.AndroidUtilities#removeAdjustResize() .
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
Source File: ChangePhoneActivity.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); for (int a = 0; a < views.length; a++) { if (views[a] != null) { views[a].onDestroyActivity(); } } if (progressDialog != null) { try { progressDialog.dismiss(); } catch (Exception e) { FileLog.e(e); } progressDialog = null; } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 2
Source File: TwoStepVerificationSetupActivity.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); doneAfterPasswordLoad = false; if (setAnimationRunnable != null) { AndroidUtilities.cancelRunOnUIThread(setAnimationRunnable); setAnimationRunnable = null; } if (animationDrawables != null) { for (int a = 0; a < animationDrawables.length; a++) { animationDrawables[a].recycle(); } animationDrawables = null; } if (progressDialog != null) { try { progressDialog.dismiss(); } catch (Exception e) { FileLog.e(e); } progressDialog = null; } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 3
Source File: TwoStepVerificationSetupActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); doneAfterPasswordLoad = false; if (setAnimationRunnable != null) { AndroidUtilities.cancelRunOnUIThread(setAnimationRunnable); setAnimationRunnable = null; } if (animationDrawables != null) { for (int a = 0; a < animationDrawables.length; a++) { animationDrawables[a].recycle(); } animationDrawables = null; } if (progressDialog != null) { try { progressDialog.dismiss(); } catch (Exception e) { FileLog.e(e); } progressDialog = null; } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 4
Source File: CancelAccountDeletionActivity.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); for (int a = 0; a < views.length; a++) { if (views[a] != null) { views[a].onDestroyActivity(); } } if (progressDialog != null) { try { progressDialog.dismiss(); } catch (Exception e) { FileLog.e(e); } progressDialog = null; } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 5
Source File: TwoStepVerificationActivity.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); if (type == 0) { NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.didSetTwoStepPassword); if (shortPollRunnable != null) { AndroidUtilities.cancelRunOnUIThread(shortPollRunnable); shortPollRunnable = null; } destroyed = true; } if (progressDialog != null) { try { progressDialog.dismiss(); } catch (Exception e) { FileLog.e(e); } progressDialog = null; } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 6
Source File: GroupCreateFinalActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.updateInterfaces); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidFailCreate); imageUpdater.clear(); if (reqId != 0) { ConnectionsManager.getInstance(currentAccount).cancelRequest(reqId, true); } if (editText != null) { editText.onDestroy(); } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 7
Source File: LoginActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onPause() { super.onPause(); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); if (newAccount) { ConnectionsManager.getInstance(currentAccount).setAppPaused(true, false); } }
Example 8
Source File: FilterUsersActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.contactsDidLoad); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.updateInterfaces); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid, true); }
Example 9
Source File: ChannelCreateActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidFailCreate); if (imageUpdater != null) { imageUpdater.clear(); } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); if (nameTextView != null) { nameTextView.onDestroy(); } }
Example 10
Source File: ChannelEditInfoActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); if (imageUpdater != null) { imageUpdater.clear(); } NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatInfoDidLoaded); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 11
Source File: ChannelCreateActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidFailCreate); if (imageUpdater != null) { imageUpdater.clear(); } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 12
Source File: GroupCreateActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.contactsDidLoad); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.updateInterfaces); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid, true); }
Example 13
Source File: LoginActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onPause() { super.onPause(); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); if (newAccount) { ConnectionsManager.getInstance(currentAccount).setAppPaused(true, false); } }
Example 14
Source File: GroupCreateActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.contactsDidLoad); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.updateInterfaces); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid, true); }
Example 15
Source File: ChannelEditInfoActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); if (imageUpdater != null) { imageUpdater.clear(); } NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatInfoDidLoaded); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 16
Source File: GroupCreateFinalActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.updateInterfaces); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidFailCreate); imageUpdater.clear(); if (reqId != 0) { ConnectionsManager.getInstance(currentAccount).cancelRequest(reqId, true); } if (editText != null) { editText.onDestroy(); } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 17
Source File: ChannelCreateActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidCreated); NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.chatDidFailCreate); if (imageUpdater != null) { imageUpdater.clear(); } AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); if (nameTextView != null) { nameTextView.onDestroy(); } }
Example 18
Source File: ChatEditTypeActivity.java From Telegram with GNU General Public License v2.0 | 4 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); getNotificationCenter().removeObserver(this, NotificationCenter.chatInfoDidLoad); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }
Example 19
Source File: PollCreateActivity.java From Telegram with GNU General Public License v2.0 | 4 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid, true); }
Example 20
Source File: ChatEditTypeActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
@Override public void onFragmentDestroy() { super.onFragmentDestroy(); getNotificationCenter().removeObserver(this, NotificationCenter.chatInfoDidLoad); AndroidUtilities.removeAdjustResize(getParentActivity(), classGuid); }