version:
update:更新图标 fix bug:修复闪退
@@ -242,6 +242,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
if (file.exists()) {
|
||||
LinkedList<File> list = new LinkedList<File>();
|
||||
File[] files = file.listFiles();
|
||||
if (files == null) return null;
|
||||
for (File file2 : files) {
|
||||
publishProgress(file2.getAbsolutePath());
|
||||
if (file2.isDirectory()) {
|
||||
@@ -256,6 +257,9 @@ public class MainActivity extends AppCompatActivity {
|
||||
while (!list.isEmpty()) {
|
||||
temp_file = list.removeFirst();
|
||||
files = temp_file.listFiles();
|
||||
if (files == null){
|
||||
continue;
|
||||
}
|
||||
for (File file2 : files) {
|
||||
publishProgress(file2.getAbsolutePath());
|
||||
if (file2.isDirectory()) {
|
||||
@@ -353,7 +357,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
//返回按钮点击事件
|
||||
|
||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |