Loading java/src/com/android/inputmethod/research/UploaderService.java +8 −5 Original line number Diff line number Diff line Loading @@ -99,12 +99,15 @@ public final class UploaderService extends IntentService { @Override protected void onHandleIntent(Intent intent) { if (!isPossibleToUpload()) return; boolean isUploadingUnconditionally = false; Bundle bundle = intent.getExtras(); if (bundle != null && bundle.containsKey(EXTRA_UPLOAD_UNCONDITIONALLY)) { isUploadingUnconditionally = bundle.getBoolean(EXTRA_UPLOAD_UNCONDITIONALLY); doUpload(isUploadingUnconditionally(intent.getExtras())); } doUpload(isUploadingUnconditionally); private boolean isUploadingUnconditionally(final Bundle bundle) { if (bundle == null) return false; if (bundle.containsKey(EXTRA_UPLOAD_UNCONDITIONALLY)) { return bundle.getBoolean(EXTRA_UPLOAD_UNCONDITIONALLY); } return false; } private boolean isExternallyPowered() { Loading Loading
java/src/com/android/inputmethod/research/UploaderService.java +8 −5 Original line number Diff line number Diff line Loading @@ -99,12 +99,15 @@ public final class UploaderService extends IntentService { @Override protected void onHandleIntent(Intent intent) { if (!isPossibleToUpload()) return; boolean isUploadingUnconditionally = false; Bundle bundle = intent.getExtras(); if (bundle != null && bundle.containsKey(EXTRA_UPLOAD_UNCONDITIONALLY)) { isUploadingUnconditionally = bundle.getBoolean(EXTRA_UPLOAD_UNCONDITIONALLY); doUpload(isUploadingUnconditionally(intent.getExtras())); } doUpload(isUploadingUnconditionally); private boolean isUploadingUnconditionally(final Bundle bundle) { if (bundle == null) return false; if (bundle.containsKey(EXTRA_UPLOAD_UNCONDITIONALLY)) { return bundle.getBoolean(EXTRA_UPLOAD_UNCONDITIONALLY); } return false; } private boolean isExternallyPowered() { Loading