Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Avoid crash on Surface3 #318

Merged
merged 1 commit into from
Sep 8, 2016
Merged

Conversation

vladimir-kotikov
Copy link
Collaborator

Looks like focusState property somehow is not accessible on Surface3. Since there is no other way to detect whether accessing property would cause a crash, the only chance to avoid it - wrap in try/catch and continue focusing it it threw

Looks like focusState property somehow is not accessible on Surface3. Since there is no other way to detect whether accessing property would cause a crash, the only chance to avoid it - wrap in try/catch and continue focusing it it threw

This fixes phonegap#288
@sgrebnov
Copy link

sgrebnov commented Sep 7, 2016

👍 Verified on Surface 3, this fixed the crash.

@macdonst macdonst merged commit 4fffc8d into phonegap:master Sep 8, 2016
@vladimir-kotikov vladimir-kotikov deleted the surface3_crash branch October 31, 2016 07:14
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants