[BREAKGLASS] A private messenger for iOS. https://signal.org
Go to file
Michael Kirk 3850ca29b0 Bigger hack to fix problem with lesser hack.
There were two symptoms to this bad "leave app while dismissing keyboard"
state...

The first, most noticeable symptom was that the main window no longer respected
the device orientation. This was caused by UIKit temporarily disabling
autorotate during an interactive keyboard dismissal, and not cleaning up after
itself when we hid the window mid dismissal due to our screen protection
feature. This was solved previously in: ca0a555f8

The second symptom remained, and is solved by this commit. Wherein after
getting in this bad state, the interactive keyboard dismiss function behaves
oddly. Normally when interactively dismissing the keyboard in a scroll view,
the keyboard top follows your finger, until you lift up your finger, at which
point, depending on how close you are to the bottom, the keyboard should
completely dismiss, or cancel and return to its fully popped position. In the
degraded state, the keyboard would follow your finger, but when you lifted your
finger, it would stay where your finger left it, it would not complete/cancel
the dismiss.

The solution is, instead of only re-enabling autorotate, to use a higher level
private method which is called upon complete/cancellation of the interactive
dismissal. The method, `UIScrollToDismissSupport#finishScrollViewTransition`,
as well as re-enabling autorotate, does some other work to restore the UI to
it's normal post interactive-keyboard-dismiss gesture state.

For posterity here's the decompiled pseudocode:

```
/* @class UIScrollToDismissSupport */
-(void)finishScrollViewTransition {
    *(int8_t *)&self->_scrollViewTransitionFinishing = 0x0;
    [self->_controller setInterfaceAutorotationDisabled:0x0];
    [self hideScrollViewHorizontalScrollIndicator:0x0];
    ebx = *ivar_offset(_scrollViewNotificationInfo);
    [*(self + ebx) release];
    *(self + ebx) = 0x0;
    esi = *ivar_offset(_scrollViewForTransition);
    [*(self + esi) release];
    *(self + esi) = 0x0;
    return;
}
```
2019-03-21 10:37:54 -07:00
.github Update ISSUE_TEMPLATE.md 2018-05-22 13:34:02 -04:00
fastlane Add jenkinsfile 2019-01-07 12:51:35 -07:00
Pods@1da2265dd4 update pods 2019-03-18 15:23:40 -07:00
protobuf Clean up ahead of PR. 2018-08-07 13:20:22 -04:00
Scripts Update reverse integration check. 2019-01-30 09:32:07 -05:00
SettingsBundle Update to the new GitHub organization name 2018-02-13 10:52:07 -05:00
Signal Bigger hack to fix problem with lesser hack. 2019-03-21 10:37:54 -07:00
Signal.xcodeproj Add accessibility identifiers to blocklist popups. 2019-03-21 10:08:25 -04:00
Signal.xcworkspace Enable legacy build system. 2018-12-13 11:47:50 -05:00
SignalMessaging Bigger hack to fix problem with lesser hack. 2019-03-21 10:37:54 -07:00
SignalServiceKit disable custom capture flow for now 2019-03-19 12:08:40 -07:00
SignalShareExtension "Bump build to 2.38.0.5." 2019-03-19 12:06:13 -07:00
ThirdParty update WebRTC artifact to M73 2019-03-18 12:56:28 -07:00
.clang-format format objc. 2016-07-14 23:15:06 -07:00
.gitattributes Supporting diffing of localizablestrings. 2015-09-14 12:26:47 +02:00
.gitignore track pod dependencies publicly 2018-02-12 12:49:09 -08:00
.gitmodules use https:// url for gitmodules 2018-11-09 14:35:18 -06:00
.ruby-version bump ruby version 2019-01-07 12:51:35 -07:00
.travis.yml CI runs SSK tests 2017-07-21 13:58:57 -04:00
BUILDING.md removed outdated build instructions. 2018-11-19 11:45:26 -06:00
CONTRIBUTING.md update translation location 2018-08-24 16:21:42 -06:00
Gemfile update ci to use latest XCode / fastlane 2017-07-11 16:36:50 -04:00
Gemfile.lock update fastlane 2019-01-07 12:51:35 -07:00
Jenkinsfile ci labels PRs with GH title 2019-01-11 10:53:22 -07:00
LICENSE Update license. 2017-04-11 18:09:16 -04:00
MAINTAINING.md Update MAINTAINING.md 2018-05-22 13:21:54 -04:00
Makefile Add jenkinsfile 2019-01-07 12:51:35 -07:00
Podfile Revert PromiseKit update for now 2019-01-23 10:27:04 -07:00
Podfile.lock link checks 2019-03-18 15:21:19 -07:00
README.md update translation location 2018-08-24 16:21:42 -06:00
SignalServiceKit.podspec replace SocketRocket with Starscream 2019-01-16 10:44:37 -07:00

Signal for iOS

Signal is a messaging app for simple private communication with friends.

Available on the App Store

Translation

Help us translate Signal! The translation effort happens on Transifex

Contributing Code

Instructions on how to set up your development environment and build Signal-iOS can be found in BUILDING.md. Other useful instructions for development can be found on the Development Guide wiki page. We also recommend reading the contribution guidelines.

Contributing Ideas

Have something you want to say about Open Whisper Systems projects or want to be part of the conversation? Get involved in the community forum.

SignalServiceKit

Check out the SignalServiceKit README for details about using SignalServiceKit in your own app.

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

License

Copyright 2014-2018 Open Whisper Systems

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html