lmw
2023-06-07 f9dd2cdac746d308d5c4bcfdbea389ab67a66b12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.luck.picture.lib;
 
import android.content.Context;
import android.content.ContextWrapper;
 
import com.luck.picture.lib.language.PictureLanguageUtils;
 
/**
 * @author:luck
 * @date:2019-12-15 19:34
 * @describe:ContextWrapper
 */
public class PictureContextWrapper extends ContextWrapper {
 
    public PictureContextWrapper(Context base) {
        super(base);
    }
 
    public static ContextWrapper wrap(Context context, int language) {
        PictureLanguageUtils.setAppLanguage(context, language);
        return new PictureContextWrapper(context);
    }
}