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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user