OSDN Git Service

Stop to remove device rows at MtpDocumentsProvider.
authorDaichi Hirono <hirono@google.com>
Fri, 25 Dec 2015 06:59:47 +0000 (15:59 +0900)
committerDaichi Hirono <hirono@google.com>
Fri, 25 Dec 2015 06:59:47 +0000 (15:59 +0900)
commit8e3b9db5448ff3c00e8670ba80105b9304cd7cb0
tree8e5558b609a5ddcfc3a761147200213a19d114a1
parente442872eaa1684d6aa7461642911f12931b2e7b5
Stop to remove device rows at MtpDocumentsProvider.

Previously MtpDocumentsProvider used to remove device info in the
database when the device is closed. It loses a chance that RootScanner
handles the removal of roots. As a result, notifications for root cursor
does not issued.

The CL stops removing device info at MtpDocumentsProvider, and let
RootScanner remove it.

BUG=26321346

Change-Id: I6aec0cf843a1e5c93e7f67a718cabd26841d9799
packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsProvider.java