File tree Expand file tree Collapse file tree
app/src/main/java/com/example/rootfilepicker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class MainActivity extends AppCompatActivity {
3131 private final List <FileItem > fileItems = new ArrayList <>();
3232 private final List <FileItem > selectedItems = new ArrayList <>();
3333
34- private List < String > extensionFilter = new ArrayList <>();
34+
3535
3636 @ Override
3737 protected void onCreate (Bundle savedInstanceState ) {
@@ -51,14 +51,7 @@ protected void onCreate(Bundle savedInstanceState) {
5151 // Lưu khi app thoát
5252 Runtime .getRuntime ().addShutdownHook (new Thread (this ::saveSelectedPaths ));
5353
54- // Nhận danh sách đuôi file từ Intent
55- extensionFilter = new ArrayList <>();
56- String extRaw = getIntent ().getStringExtra ("extension" );
57- if (extRaw != null ) {
58- for (String ext : extRaw .split ("," )) {
59- extensionFilter .add (ext .trim ().toLowerCase ());
60- }
61- }
54+
6255
6356 setContentView (R .layout .activity_main );
6457
You can’t perform that action at this time.
0 commit comments