Skip to content

Commit

Permalink
Some crashes was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
o4kapuk committed Sep 24, 2013
1 parent 58b0468 commit 23a0239
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
8 changes: 7 additions & 1 deletion bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ def main():
edit.add_invoke_entry('MenuShowBtn_onClick')
edit.add_line(' move-result-object %s' % edit.vars[0])
edit.save()


edit = edit_cls('AvatarPlayerStatusBar_AvatarListener')
edit.prepare_after_prologue('clicked')
edit.add_invoke_entry('Mod_ShowAgentTab', '', 'v0')
edit.add_ret_if_result(False)
edit.save()

edit = edit_cls('AssetFinder')
edit.find_line(r' const-string/jumbo v\d+, "\{"')
edit.find_prologue(where="up")
Expand Down
14 changes: 12 additions & 2 deletions res/analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ broot.ingress.mod.Entry:
MenuTopWidget_getTabs: [null, '$MenuTabId[]']
MenuTabId_onToString: [null, $String, $MenuTabId]
MenuControllerImpl_onSelectTab: [null, V, $MenuTabId]
Mod_ShowAgentTab: [null, Z]
AssetFinder_onGetAssetPath: [null, Lcom/badlogic/gdx/files/FileHandle;, $String]
PortalInfoDialog_onStatsTableCreated: [null, V, $PortalInfoDialog, $Table]
PortalInfoDialog_onPlayerLocationChanged: [null, V]
Expand All @@ -27,7 +28,6 @@ broot.ingress.mod.Entry:
ScannerTouchHandler_shouldSwapTouchMenuButtons: [null, Z]
ZoomInMode_shouldZoomIn: [null, Z]
PortalInfoDialog_getOpenDelay: [null, F, F]
# PortalUpgrade_onStatsTableCreated: [null, V, $PortalUpgradeUi, $Table]
GpsSensor_lockTimeout: [null, J]
PortalUpgrade_onDispose: [null, V]
PortalUpgrade_getResonatorBrowserHeight: [null, I, I]
Expand Down Expand Up @@ -369,13 +369,23 @@ com.nianticproject.ingress.common.ui.elements.AvatarPlayerStatusBar_OpsButtonLis
init: [<init>, V, $AvatarPlayerStatusBar]
clicked: [clicked, V, Lcom/badlogic/gdx/scenes/scene2d/InputEvent;, F, F]

# find_by_method: init
find:
- [by_super, false, true, Lcom/badlogic/gdx/scenes/scene2d/utils/ClickListener;]
- [by_method, false, true, init]
- [by_method, false, true, clicked]
- [by_string, false, true, Lcom/nianticproject/ingress/common/inventory]

com.nianticproject.ingress.common.ui.elements.AvatarPlayerStatusBar_AvatarListener:
methods:
init: [<init>, V, $AvatarPlayerStatusBar]
clicked: [clicked, V, Lcom/badlogic/gdx/scenes/scene2d/InputEvent;, F, F]

find:
- [by_super, false, true, Lcom/badlogic/gdx/scenes/scene2d/utils/ClickListener;]
- [by_method, false, true, init]
- [by_method, false, true, clicked]
- [by_string, false, true, $MyProfileActivity]

com.nianticproject.ingress.common.ui.elements.OldPlayerStatusBar_OpsButtonListener:
methods:
init: [<init>, V, $OldPlayerStatusBar]
Expand Down
4 changes: 2 additions & 2 deletions src/broot/ingress/mod/AboutModActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ private void updateUiTweaksValues(boolean save) {
case 900000: gpsLockLabel = "15min"; break;
default: gpsLockLabel = "Unknown";
}
uiTweaksItem.buttons.get(9).setText(gpsLockLabel);
uiTweaksItem.buttons.get(10).setText(Config.changePortalInfoDialog ? "ON" : "OFF");
uiTweaksItem.buttons.get(8).setText(gpsLockLabel);
uiTweaksItem.buttons.get(9).setText(Config.changePortalInfoDialog ? "ON" : "OFF");
}

private void updateUiVariantValue() {
Expand Down
4 changes: 4 additions & 0 deletions src/broot/ingress/mod/Entry.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ public static boolean ItemActionHandler_recycleAnimationsEnabled() {
return Config.recycleAnimationsEnabled;
}

public static boolean Mod_ShowAgentTab() {
return Config.showAgentTab;
}

public static boolean vibrationEnabled() {
return Config.vibration;
}
Expand Down

0 comments on commit 23a0239

Please sign in to comment.