Loading packages/SystemUI/src/com/android/systemui/toast/ToastFactory.java +3 −5 Original line number Diff line number Diff line Loading @@ -40,14 +40,11 @@ import javax.inject.Inject; public class ToastFactory implements Dumpable { // only one ToastPlugin can be connected at a time. private ToastPlugin mPlugin; private final LayoutInflater mLayoutInflater; @Inject public ToastFactory( LayoutInflater layoutInflater, PluginManager pluginManager, DumpManager dumpManager) { mLayoutInflater = layoutInflater; dumpManager.registerDumpable("ToastFactory", this); pluginManager.addPluginListener( new PluginListener<ToastPlugin>() { Loading @@ -70,11 +67,12 @@ public class ToastFactory implements Dumpable { */ public SystemUIToast createToast(Context context, CharSequence text, String packageName, int userId, int orientation) { LayoutInflater layoutInflater = LayoutInflater.from(context); if (isPluginAvailable()) { return new SystemUIToast(mLayoutInflater, context, text, mPlugin.createToast(text, return new SystemUIToast(layoutInflater, context, text, mPlugin.createToast(text, packageName, userId), packageName, userId, orientation); } return new SystemUIToast(mLayoutInflater, context, text, packageName, userId, return new SystemUIToast(layoutInflater, context, text, packageName, userId, orientation); } Loading packages/SystemUI/src/com/android/systemui/toast/ToastUI.java +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ public class ToastUI implements return; } Context displayContext = context.createDisplayContext(display); mToast = mToastFactory.createToast(mContext /* sysuiContext */, text, packageName, mToast = mToastFactory.createToast(displayContext /* sysuiContext */, text, packageName, userHandle.getIdentifier(), mOrientation); if (mToast.getInAnimation() != null) { Loading packages/SystemUI/tests/src/com/android/systemui/toast/ToastUITest.java +0 −1 Original line number Diff line number Diff line Loading @@ -134,7 +134,6 @@ public class ToastUITest extends SysuiTestCase { mNotificationManager, mAccessibilityManager, new ToastFactory( mLayoutInflater, mPluginManager, mDumpManager), mToastLogger); Loading Loading
packages/SystemUI/src/com/android/systemui/toast/ToastFactory.java +3 −5 Original line number Diff line number Diff line Loading @@ -40,14 +40,11 @@ import javax.inject.Inject; public class ToastFactory implements Dumpable { // only one ToastPlugin can be connected at a time. private ToastPlugin mPlugin; private final LayoutInflater mLayoutInflater; @Inject public ToastFactory( LayoutInflater layoutInflater, PluginManager pluginManager, DumpManager dumpManager) { mLayoutInflater = layoutInflater; dumpManager.registerDumpable("ToastFactory", this); pluginManager.addPluginListener( new PluginListener<ToastPlugin>() { Loading @@ -70,11 +67,12 @@ public class ToastFactory implements Dumpable { */ public SystemUIToast createToast(Context context, CharSequence text, String packageName, int userId, int orientation) { LayoutInflater layoutInflater = LayoutInflater.from(context); if (isPluginAvailable()) { return new SystemUIToast(mLayoutInflater, context, text, mPlugin.createToast(text, return new SystemUIToast(layoutInflater, context, text, mPlugin.createToast(text, packageName, userId), packageName, userId, orientation); } return new SystemUIToast(mLayoutInflater, context, text, packageName, userId, return new SystemUIToast(layoutInflater, context, text, packageName, userId, orientation); } Loading
packages/SystemUI/src/com/android/systemui/toast/ToastUI.java +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ public class ToastUI implements return; } Context displayContext = context.createDisplayContext(display); mToast = mToastFactory.createToast(mContext /* sysuiContext */, text, packageName, mToast = mToastFactory.createToast(displayContext /* sysuiContext */, text, packageName, userHandle.getIdentifier(), mOrientation); if (mToast.getInAnimation() != null) { Loading
packages/SystemUI/tests/src/com/android/systemui/toast/ToastUITest.java +0 −1 Original line number Diff line number Diff line Loading @@ -134,7 +134,6 @@ public class ToastUITest extends SysuiTestCase { mNotificationManager, mAccessibilityManager, new ToastFactory( mLayoutInflater, mPluginManager, mDumpManager), mToastLogger); Loading