Refactored ProxyUtils for lite version
This commit is contained in:
parent
838270b4b0
commit
0ac2337ff8
@ -3,6 +3,8 @@ package acr.browser.lightning.utils;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import acr.browser.lightning.app.BrowserApp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 6/4/2015 Anthony Restaino
|
* 6/4/2015 Anthony Restaino
|
||||||
*/
|
*/
|
||||||
@ -14,9 +16,9 @@ public class ProxyUtils {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ProxyUtils getInstance(Context context) {
|
public static ProxyUtils getInstance() {
|
||||||
if (mInstance == null) {
|
if (mInstance == null) {
|
||||||
mInstance = new ProxyUtils(context);
|
mInstance = new ProxyUtils(BrowserApp.getAppContext());
|
||||||
}
|
}
|
||||||
return mInstance;
|
return mInstance;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user