summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2022-09-08 14:26:36 -0400
committerJoey Grover <joeygrover@gmail.com>2022-09-08 14:26:36 -0400
commitb22c4cf9ac8113b0f332659d3f7126e02fc5fa9e (patch)
tree367cce7a745bfdd6fbdb2847ce9837ba7aa7543d
parentb99a2cabbf5d19c027e2443d68b21e7881d55ef6 (diff)
downloadsdl_android-b22c4cf9ac8113b0f332659d3f7126e02fc5fa9e.tar.gz
Change SdlBR handleStartServiceEx access modifier
Update to protected to allow other transport classes to use it
-rw-r--r--android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java
index 73d1fe2dc..936989f5c 100644
--- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java
+++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java
@@ -600,7 +600,12 @@ public abstract class SdlBroadcastReceiver extends BroadcastReceiver {
return false;
}
- private static void handleStartServiceException(Exception e) {
+ /**
+ * Convenience method to log details on the specific exception that occurred while attempting to
+ * start a foreground service.
+ * @param e the exception that occurred
+ */
+ protected static void handleStartServiceException(Exception e) {
if (e instanceof SecurityException) {
DebugTool.logError(TAG, "Security exception, process is bad");
return;