Removed need for passing a Context to the ProxyUtils singleton
This commit is contained in:
parent
dbf0457d79
commit
3fab58955c
@ -32,9 +32,9 @@ public class ProxyUtils {
|
||||
mI2PHelper = new I2PAndroidHelper(context.getApplicationContext());
|
||||
}
|
||||
|
||||
public static ProxyUtils getInstance(@NonNull Context context) {
|
||||
public static ProxyUtils getInstance() {
|
||||
if (mInstance == null) {
|
||||
mInstance = new ProxyUtils(context);
|
||||
mInstance = new ProxyUtils(BrowserApp.getAppContext());
|
||||
}
|
||||
return mInstance;
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
|
||||
}
|
||||
arrowButton.setOnClickListener(this);
|
||||
|
||||
mProxyUtils = ProxyUtils.getInstance(this);
|
||||
mProxyUtils = ProxyUtils.getInstance();
|
||||
|
||||
setupFrameLayoutButton(R.id.action_back, R.id.icon_back);
|
||||
setupFrameLayoutButton(R.id.action_forward, R.id.icon_forward);
|
||||
|
Loading…
Reference in New Issue
Block a user