aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/ChangeThemeName.java
blob: efe81f5995bf743f018b070b17fd14227541fc11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package ml.docilealligator.infinityforreddit.asynctasks;

import java.util.concurrent.Executor;

import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;

public class ChangeThemeName {
    public static void changeThemeName(Executor executor, RedditDataRoomDatabase redditDataRoomDatabase,
                                       String oldName, String newName) {
        executor.execute(() -> {
            redditDataRoomDatabase.customThemeDao().updateName(oldName, newName);
        });
    }
}