Add support for paste image to SearchBar
This commit is contained in:
1 parent
7de5be135f
commit
fcd2f2ac23
4 files changed
+55
-10
No files matched your search
@@ -22,6 +22,7 @@ import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import android.text.Editable;
|
||||
@@ -467,6 +468,11 @@ public class SearchBar extends MaterialCardView implements View.OnClickListener,
|
||||
mHelper.onSearchEditTextBackPressed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReceiveContent(Uri uri) {
|
||||
mHelper.onReceiveContent(uri);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Parcelable onSaveInstanceState() {
|
||||
final Bundle state = new Bundle();
|
||||
@@ -496,6 +502,11 @@ public class SearchBar extends MaterialCardView implements View.OnClickListener,
|
||||
void onApplySearch(String query);
|
||||
|
||||
void onSearchEditTextBackPressed();
|
||||
|
||||
default void onReceiveContent(Uri uri) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface OnStateChangeListener {
|
||||
|
||||
Reference in new issue
Block a user