mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
moved the preference accessing to the oC Preference Manager
This commit is contained in:
parent
a931baf8c6
commit
3b4304048b
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ public abstract class PreferenceManager {
|
|||
* Gets the path where the user selected to do the last upload of a file shared from other app.
|
||||
*
|
||||
* @param context Caller {@link Context}, used to access to shared preferences manager.
|
||||
* @return path iAbsolute path to a folder, as previously stored by {@link #setLastUploadPath(String, Context)},
|
||||
* @return path Absolute path to a folder, as previously stored by {@link #setLastUploadPath(String, Context)},
|
||||
* or empty String if never saved before.
|
||||
*/
|
||||
public static String getLastUploadPath(Context context) {
|
||||
|
@ -135,7 +135,7 @@ public abstract class PreferenceManager {
|
|||
* Saves the ascending order flag which the user has set last.
|
||||
*
|
||||
* @param ascending flag if sorting is ascending or descending
|
||||
* @param context Caller {@link Context}, used to access to shared preferences manager.
|
||||
* @param context Caller {@link Context}, used to access to shared preferences manager.
|
||||
*/
|
||||
public static void setSortAscending(boolean ascending, Context context) {
|
||||
SharedPreferences.Editor appPreferences = android.preference.PreferenceManager
|
||||
|
|
Loading…
Reference in a new issue