summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dave Mankoff <mankoff@google.com> 2020-11-18 15:48:34 -0500
committer Dave Mankoff <mankoff@google.com> 2020-11-18 15:51:34 -0500
commitc33489a60b529c63bda512c6890eff664cdfc3b0 (patch)
treea831691f8646077783a68b3600ace03f4e482806
parent026e127e3f23629a3bde8f1ea0b2d30520fef5f0 (diff)
More logging when failing to inject SliceProvider.
This continues to be an exception that shouldn't be happening. ADding more logging to try to get insight into the problem. Test: manual Bug: 168778439 Change-Id: I2fdaa366c70f1551a768f48f7ac6df966e731fe3
-rw-r--r--packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java3
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java b/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java
index bb7906e7c3ae..714d267bb07d 100644
--- a/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java
+++ b/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java
@@ -23,6 +23,7 @@ import android.content.BroadcastReceiver;
import android.content.ContentProvider;
import android.content.Context;
import android.content.Intent;
+import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -94,7 +95,7 @@ public class SystemUIAppComponentFactory extends AppComponentFactory {
} catch (NoSuchMethodException
| IllegalAccessException
| InvocationTargetException e) {
- // no-op
+ Log.w(TAG, "No injector for class: " + contentProvider.getClass(), e);
}
}
);
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
index 37bcb163d6f3..bd3b899adee7 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
@@ -329,7 +329,7 @@ public class KeyguardSliceProvider extends SliceProvider implements
Method injectMethod = rootComponent.getClass()
.getMethod("inject", getClass());
injectMethod.invoke(rootComponent, this);
- Log.w("TAG", "mMediaManager is now: " + mMediaManager);
+ Log.w(TAG, "mMediaManager is now: " + mMediaManager);
} catch (NoSuchMethodException ex) {
Log.e(TAG, "Failed to find inject method for KeyguardSliceProvider", ex);
} catch (IllegalAccessException | InvocationTargetException ex) {