Fix Galaxy S5's display information segfaulting by trying to use the public SDK methods first. SurfaceComposerClient's getDisplayInfo is practically unusable on Galaxy S5 due to weird memory corruption issues.

This commit is contained in:
Simo Kinnunen
2014-06-18 15:50:05 +09:00
parent 2f5a882099
commit 6bb07d7c34
16 changed files with 87 additions and 40 deletions

View File

@@ -6,10 +6,10 @@
.btn-group
label.btn-sm.btn-primary-outline(type='button', ng-click='tryToRotate("portrait")',
ng-model='currentRotation', btn-radio='"portrait"').pointer
i.fa.fa-mobile(tooltip='{{ "Portrait" | translate }} ({{ device.display.orientation }}°)', tooltip-placement='bottom')
i.fa.fa-mobile(tooltip='{{ "Portrait" | translate }} ({{ device.display.rotation }}°)', tooltip-placement='bottom')
label.btn-sm.btn-primary-outline(type='button', ng-click='tryToRotate("landscape")',
ng-model='currentRotation', btn-radio='"landscape"').pointer
i.fa.fa-mobile.fa-rotate-90(tooltip='{{ "Landscape" | translate }} ({{ device.display.orientation }}°)', tooltip-placement='bottom')
i.fa.fa-mobile.fa-rotate-90(tooltip='{{ "Landscape" | translate }} ({{ device.display.rotation }}°)', tooltip-placement='bottom')
.button-spacer
// NOTE: ui-bootstrap bug: tooltip breaks btn-checkbox so don't put in the same button
button(type='button', ng-model='showScreen', btn-checkbox).btn.btn-sm.btn-danger