@@ -95,7 +95,7 @@ public class SessionActivity extends BaseActivity implements SessionContract.Vie |
||
95 | 95 |
presenter.start(); |
96 | 96 |
String LOG_PATH = Environment.getExternalStorageDirectory() |
97 | 97 |
.getAbsolutePath() + "/lensman/logs/"; |
98 |
- if(!new File(LOG_PATH).mkdirs()){ |
|
98 |
+ if(!new File(LOG_PATH).exists()&&!new File(LOG_PATH).mkdirs()){ |
|
99 | 99 |
Toast.makeText(this,R.string.sdcard_fail,Toast.LENGTH_SHORT).show(); |
100 | 100 |
} |
101 | 101 |
LogHelper.d(TAG,"onCreate"); |