Merge "Delete DynamicindexableContentMonitor & all refs to it" into oc-mr1-dev am: 5b820431d3
am: a8f7f745e1
Change-Id: Ifd5618ddad3fcc9a535fe719470e67946bcd9d2d
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package com.android.settings.testutils.shadow;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.UserManager;
|
||||
import com.android.settings.search.DynamicIndexableContentMonitor;
|
||||
import org.robolectric.annotation.Implementation;
|
||||
import org.robolectric.annotation.Implements;
|
||||
import org.robolectric.annotation.RealObject;
|
||||
|
||||
/**
|
||||
* A shadow class of {@link DynamicIndexableContentMonitor}. The real implementation of
|
||||
* {@link DynamicIndexableContentMonitor#register} calls {@link UserManager#isUserUnlocked()}, which
|
||||
* Robolectric has not yet been updated to support, so throws a NoSuchMethodError exception.
|
||||
*/
|
||||
// TODO: Delete this once Robolectric is updated to the latest SDK.
|
||||
@Implements(DynamicIndexableContentMonitor.class)
|
||||
public class ShadowDynamicIndexableContentMonitor {
|
||||
|
||||
@Implementation
|
||||
public void register(Activity activity, int loaderId) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user