hxb
2022-11-22 b3513b1713bb979d0a69c5a8c4ddcd038f184e6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.mm.android.deviceaddmodule.mobilecommon.AppConsume;
 
import android.app.Activity;
import android.content.Context;
 
import com.mm.android.deviceaddmodule.helper.ActivityHelper;
import com.mm.android.deviceaddmodule.utils.SDsolutionUtility;
 
 
public class DeviceAddCustomImpl implements IDeviceAddCustom {
 
    private volatile static DeviceAddCustomImpl deviceAddCustom;
 
    public static DeviceAddCustomImpl newInstance() {
        if (deviceAddCustom == null) {
            synchronized (DeviceAddCustomImpl.class) {
                if (deviceAddCustom == null) {
                    deviceAddCustom = new DeviceAddCustomImpl();
                }
            }
        }
        return deviceAddCustom;
    }
 
    @Override
    public void goFAQWebview(Context context) {
        //TODO 跳转到问题反馈页面
    }
 
    @Override
    public void goHomePage(Context context) {
        Activity activity=ActivityHelper.getCurrentActivity();
        if (activity!=null){
            activity.finish();
        }
    }
 
    @Override
    public String getDevAddCachePath() {
        return SDsolutionUtility.getCachePath();
    }
 
    @Override
    public void uninit() {
 
    }
}