Skip to content

Commit ad52507

Browse files
committed
remove filter edit text
1 parent 705d4b9 commit ad52507

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

libeditor/src/main/java/com/duy/file/explorer/FileListPagerFragment.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
import android.support.v7.view.ActionMode;
2929
import android.support.v7.widget.LinearLayoutManager;
3030
import android.support.v7.widget.RecyclerView;
31-
import android.text.Editable;
32-
import android.text.TextWatcher;
3331
import android.view.LayoutInflater;
3432
import android.view.MenuItem;
3533
import android.view.View;
@@ -133,23 +131,6 @@ public void run() {
133131
binding.explorerSwipeRefreshLayout.setRefreshing(true);
134132
}
135133
});
136-
binding.nameFilterEditText.addTextChangedListener(new TextWatcher() {
137-
@Override
138-
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
139-
140-
}
141-
142-
@Override
143-
public void onTextChanged(CharSequence s, int start, int before, int count) {
144-
adapter.filter(s);
145-
}
146-
147-
@Override
148-
public void afterTextChanged(Editable s) {
149-
150-
}
151-
});
152-
153134
Preferences.getInstance(getContext()).registerOnSharedPreferenceChangeListener(this);
154135

155136
view.post(new Runnable() {

libeditor/src/main/res-file-expoler/layout/file_explorer_fragment.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@
3535
android:layout_height="1dp"
3636
android:background="?android:listDivider" />
3737

38-
<android.support.design.widget.TextInputLayout
39-
android:layout_width="match_parent"
40-
android:layout_height="wrap_content">
41-
42-
<android.support.v7.widget.AppCompatEditText
43-
android:id="@+id/nameFilterEditText"
44-
android:layout_width="match_parent"
45-
android:layout_height="wrap_content"
46-
android:hint="@string/filter_by_name"
47-
android:maxLength="20"
48-
android:singleLine="true" />
49-
50-
</android.support.design.widget.TextInputLayout>
5138

5239
<FrameLayout
5340
android:layout_width="match_parent"

0 commit comments

Comments
 (0)