From 9a097830fa2ebc83885e1fc3ee63e8d6fc30a9fb Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Mon, 22 Jan 2018 14:08:44 +0100 Subject: [PATCH] livedisplay: don't throw exception if config is not ready, warning is enough Throwing an exception leads to rescueMode in oreo Change-Id: I9c4cb7af8cae51936f439641b79ae522c84eaaee Signed-off-by: Pranav Vashi --- sdk/src/java/lineageos/hardware/LiveDisplayManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/java/lineageos/hardware/LiveDisplayManager.java b/sdk/src/java/lineageos/hardware/LiveDisplayManager.java index eb7a5753..28238494 100644 --- a/sdk/src/java/lineageos/hardware/LiveDisplayManager.java +++ b/sdk/src/java/lineageos/hardware/LiveDisplayManager.java @@ -160,7 +160,7 @@ public class LiveDisplayManager { try { mConfig = sService.getConfig(); if (mConfig == null) { - throw new RuntimeException("Unable to get LiveDisplay configuration!"); + Log.w(TAG, "Unable to get LiveDisplay configuration!"); } } catch (RemoteException e) { throw new RuntimeException("Unable to fetch LiveDisplay configuration!", e);