Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c33489a6 authored by Dave Mankoff's avatar Dave Mankoff
Browse files

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
parent 026e127e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
                        }
                    }
            );
+1 −1
Original line number Diff line number Diff line
@@ -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) {