Skip to content

Commit 9fa79df

Browse files
committed
Device art support for Nexus 7 (2013)
1 parent f98d161 commit 9fa79df

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/com/dtmilano/android/viewclient.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '10.3.3'
21+
__version__ = '10.3.5'
2222

2323
import sys
2424
import warnings
@@ -3632,10 +3632,12 @@ def writeImageToFile(self, filename, _format="PNG", deviceart=None, dropshadow=T
36323632
deviceart = 'nexus_4'
36333633
elif hardware == 'grouper':
36343634
deviceart = 'nexus_7' # 2012
3635+
elif hardware == 'flo':
3636+
deviceart = 'nexus_7_2013'
36353637
elif hardware == 'mt5861':
36363638
deviceart = 'tv_1080p'
36373639

3638-
SUPPORTED_DEVICES = ['nexus_5', 'nexus_4', 'nexus_7', 'tv_1080p']
3640+
SUPPORTED_DEVICES = ['nexus_5', 'nexus_4', 'nexus_7', 'nexus_7_2013', 'tv_1080p']
36393641
if deviceart not in SUPPORTED_DEVICES:
36403642
warnings.warn("Only %s is supported now, more devices coming soon" % SUPPORTED_DEVICES)
36413643
if deviceart == 'auto':
@@ -3657,6 +3659,11 @@ def writeImageToFile(self, filename, _format="PNG", deviceart=None, dropshadow=T
36573659
screenPos = (142, 190)
36583660
else:
36593661
screenPos = (260, 105)
3662+
elif deviceart == 'nexus_7_2013':
3663+
if orientationName == 'port':
3664+
screenPos = (130, 201)
3665+
else:
3666+
screenPos = (282, 80)
36603667
elif deviceart == 'tv_1080p':
36613668
screenPos = (85, 59)
36623669
orientationName = ''

0 commit comments

Comments
 (0)