OSDN Git Service

Fix importer crashes when unplugging during indexing
authorBobby Georgescu <georgescu@google.com>
Thu, 17 Jan 2013 22:07:31 +0000 (14:07 -0800)
committerBobby Georgescu <georgescu@google.com>
Fri, 18 Jan 2013 01:24:49 +0000 (17:24 -0800)
commiteebf9e81673150a6c4fec89b64e3cdb595377c83
tree32ab878e30f5116acdce5200f6f8c0d3d71e2d32
parent48e376325d812fdbdcee569b48641cd4073e4973
Fix importer crashes when unplugging during indexing

Bug: 8027984
Slightly refactored the indexing step to encapsulate all
of the indexing work within the runnable that does it and
to correctly handle the cases where the device is unplugged
in the middle of the indexing.

Change-Id: I338657bbbedd6b82d012f65cd1ea28e0afd890c2
src/com/android/gallery3d/ingest/MtpDeviceIndex.java