Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Migration_19_20.java « migration « persistence « notes « owncloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20ebebfacbc9bce5af138ee565d38d73c8723e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package it.niedermann.owncloud.notes.persistence.migration;

import android.content.Context;
import android.content.SharedPreferences;

import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager;

public class Migration_19_20 {

    /**
     * Removes <code>branding</code> from {@link SharedPreferences} because we do no longer allow to disable it.
     *
     * @param context {@link Context}
     */
    public Migration_19_20(@NonNull Context context) {
        PreferenceManager.getDefaultSharedPreferences(context).edit().remove("branding").apply();
    }
}