File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/src/main/java/github/daneren2005/dsub Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ public static File getSubsonicDirectory(Context context) {
453453 public static File getDefaultMusicDirectory (Context context ) {
454454 if (DEFAULT_MUSIC_DIR == null ) {
455455 File [] dirs ;
456- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
456+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP && Build . VERSION . SDK_INT < Build . VERSION_CODES . R ) {
457457 dirs = context .getExternalMediaDirs ();
458458 } else {
459459 dirs = ContextCompat .getExternalFilesDirs (context , null );
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ protected void onBindDialogView(View view) {
6767 Button externalLocation = (Button ) cacheButtonsWrapper .findViewById (R .id .location_external );
6868
6969 File [] dirs ;
70- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
70+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP && Build . VERSION . SDK_INT < Build . VERSION_CODES . R ) {
7171 dirs = context .getExternalMediaDirs ();
7272 } else {
7373 dirs = ContextCompat .getExternalFilesDirs (context , null );
You can’t perform that action at this time.
0 commit comments