Removed need for passing a Context to the ProxyUtils singleton

This commit is contained in:
Anthony Restaino 2015-09-09 22:18:20 -04:00
parent dbf0457d79
commit 3fab58955c
2 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ public class ProxyUtils {
mI2PHelper = new I2PAndroidHelper(context.getApplicationContext()); mI2PHelper = new I2PAndroidHelper(context.getApplicationContext());
} }
public static ProxyUtils getInstance(@NonNull 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;
} }

View File

@ -321,7 +321,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
} }
arrowButton.setOnClickListener(this); arrowButton.setOnClickListener(this);
mProxyUtils = ProxyUtils.getInstance(this); mProxyUtils = ProxyUtils.getInstance();
setupFrameLayoutButton(R.id.action_back, R.id.icon_back); setupFrameLayoutButton(R.id.action_back, R.id.icon_back);
setupFrameLayoutButton(R.id.action_forward, R.id.icon_forward); setupFrameLayoutButton(R.id.action_forward, R.id.icon_forward);