summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2015-12-16 16:57:05 -0800
committerPhilip P. Moltmann <moltmann@google.com>2015-12-22 19:00:39 -0800
commit98963260dc30f1dc3e89dbd0efdfcdc6398d753c (patch)
treec14b6a8152815f7169dfddd59580d0e10a90f6ca /tools/aapt2/java/JavaClassGenerator_test.cpp
parent8cef7db8d673bf293d69f7d17dd7e31970f5bfe9 (diff)
Prefer printers that have been used physically close to the current
location of the user. Commonly the users prints on a printer that this near the user current location. Hence if possible we want to show the user printers that he used before and that are close to him. Hence store the location of the previous uses of a printer and prefer printer that are close to the user. Unfortunately getLastLocation might not report a usable location and it will take at least 5 seconds until the first usable location arrives. At this time the user might have already opened the destionation spinner. It would be unexpected for the printers to suddenly change under the users finger. Hence it might be that we did first show the printer without any location information and then once the location is known we cannot update thedestination spinner anymore. The select printer activity does not have this issue, hence in the worst case the user has to enter this activity to select a printer and by then the location is usually determined. This is not ideal but better than before. Bug: 24133609 Change-Id: Ie7d20cf3d9dd163e57903f8f6ecc0b3fd4f4374e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions