summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorPatrick <patb@google.com>2018-06-11 09:25:58 -0700
committerPatrick <patb@google.com>2018-06-11 14:27:05 -0700
commit855b5df09a8268378b381ef8253fe0e9885fca5a (patch)
treec7199ec1b3a87c17669f83c9cf9fe88c830849be /tools/aapt2/java/JavaClassGenerator.cpp
parent304fcaf77a07987b82652992d523a6f562438e7e (diff)
Early exit if we don't have a package on record
In NMR1, the ability to silently uninstall orphaned packages was added. This code path added a new throw from the uninstall flow if the package didn't exist and resulted in uninstall of a non-existant package printing a stack trace instead of DELETE_FAILED_INTERNAL_ERROR as it did in prior versions. This change simply checks for the existance of the package and fails early when no such package exist. Also moves all calls to the observer to a post to the handler. Change-Id: I89d1d5002ef2f37b65a6910fb366ff4a68070e6d Fixes: 33230110 Test: unisntalled missing package
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions