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:
Dave Mankoff
2020-11-18 15:48:34 -05:00
parent 026e127e3f
commit c33489a60b
2 changed files with 3 additions and 2 deletions

View File

@@ -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);
}
}
);

View File

@@ -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) {