Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
update start directory for android 10+
Browse files Browse the repository at this point in the history
  • Loading branch information
lfuelling committed Apr 24, 2020
1 parent fa5c333 commit e6ef9fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/io/lerk/lrkFM/consts/PreferenceEntity.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.lerk.lrkFM.consts;

import android.os.Build;

import androidx.annotation.Nullable;

import java.util.HashSet;
Expand Down Expand Up @@ -28,7 +30,7 @@ public enum PreferenceEntity {
/**
* The home directory of the application.
*/
HOME_DIR(LOCAL, "home_dir", "/storage/emulated/0"),
HOME_DIR(LOCAL, "home_dir", (Build.VERSION.SDK_INT <= 28) ? "/storage/emulated/0" : "/storage"),

/**
* If the bookmarks can currently be edited.
Expand Down

0 comments on commit e6ef9fc

Please sign in to comment.