summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/LogWindowWrapper.java
blob: 2476f6a464d95749956103505380000576835aec (plain)
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
package se.leap.bitmaskclient;

import android.content.*;

import de.blinkt.openvpn.activities.*;

public class LogWindowWrapper {
    private static LogWindowWrapper instance;

    private static String TAG = LogWindowWrapper.class.getName();
    private Context context;

    public LogWindowWrapper(Context context) {
        this.context = context;
    }

    public void showLog() {
        Intent startLW = new Intent(context, LogWindow.class);
        startLW.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(startLW);
    }

    public static LogWindowWrapper getInstance(Context context) {
        if(instance == null)
            instance = new LogWindowWrapper(context);
        return instance;
    }
}