blob: 8793cf36b8be0435b936ab231cecaa22f4a3257a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package se.leap.bitmaskclient;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class EipStatusReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals("de.blinkt.openvpn.VPN_STATUS")) {
context.getSharedPreferences(Dashboard.SHARED_PREFERENCES, Context.MODE_PRIVATE).edit().putString(EIP.STATUS, intent.getStringExtra("status")).commit();
}
}
}
|