version:
update:更新图标 fix bug:修复闪退
@@ -242,6 +242,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
LinkedList<File> list = new LinkedList<File>();
|
LinkedList<File> list = new LinkedList<File>();
|
||||||
File[] files = file.listFiles();
|
File[] files = file.listFiles();
|
||||||
|
if (files == null) return null;
|
||||||
for (File file2 : files) {
|
for (File file2 : files) {
|
||||||
publishProgress(file2.getAbsolutePath());
|
publishProgress(file2.getAbsolutePath());
|
||||||
if (file2.isDirectory()) {
|
if (file2.isDirectory()) {
|
||||||
@@ -256,6 +257,9 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
while (!list.isEmpty()) {
|
while (!list.isEmpty()) {
|
||||||
temp_file = list.removeFirst();
|
temp_file = list.removeFirst();
|
||||||
files = temp_file.listFiles();
|
files = temp_file.listFiles();
|
||||||
|
if (files == null){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for (File file2 : files) {
|
for (File file2 : files) {
|
||||||
publishProgress(file2.getAbsolutePath());
|
publishProgress(file2.getAbsolutePath());
|
||||||
if (file2.isDirectory()) {
|
if (file2.isDirectory()) {
|
||||||
@@ -353,7 +357,6 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
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 |