Skip to content

Commit

Permalink
Disabled experimental features
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Diaz committed Sep 26, 2016
1 parent c45f83a commit d40a654
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/src/main/java/com/icecream/snorlax/module/Snorlax.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.icecream.snorlax.module.feature.encounter.Encounter;
import com.icecream.snorlax.module.feature.mitm.Mitm;
import com.icecream.snorlax.module.feature.mock.Mock;
import com.icecream.snorlax.module.feature.ui.Ui;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.IXposedHookZygoteInit;
Expand All @@ -47,8 +46,8 @@ public class Snorlax implements IXposedHookLoadPackage, IXposedHookZygoteInit {
Capture mCapture;
@Inject
Encounter mEncounter;
@Inject
Ui mUi;
//@Inject
//Ui mUi;

private XSharedPreferences mXSharedPreferences;

Expand Down Expand Up @@ -77,13 +76,13 @@ private void handlePokemonGoLoadPackage(final ClassLoader classLoader) {
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
getComponent((Application) param.thisObject, classLoader, mXSharedPreferences).inject(Snorlax.this);

FeatureHelper.subscribe(mMitm, mMock, mCapture, mEncounter, mUi);
FeatureHelper.subscribe(mMitm, mMock, mCapture, mEncounter/*, mUi*/);
}
});
XposedHelpers.findAndHookMethod(Application.class, "onTerminate", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
FeatureHelper.unsubscribe(mMitm, mMock, mCapture, mEncounter, mUi);
FeatureHelper.unsubscribe(mMitm, mMock, mCapture, mEncounter/*, mUi*/);
}
});
}
Expand Down

0 comments on commit d40a654

Please sign in to comment.