Skip to content

Commit

Permalink
adb: whoops I forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
hariimurti committed Apr 4, 2020
1 parent 45b27f1 commit f6681e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions ApkManager/AdbWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ private void ShowActionMenu(ShowMenu menu)
gbAction.Header = "Action : Install";
gbCommand.Visibility = Visibility.Visible;

if (cfg.AutoInstall())
ButtonActionInstall_Click(null, null);
if (!cfg.AutoInstall()) return;
ButtonActionInstall_Click(null, null);
}
else if (menu == ShowMenu.Uninstall)
{
Expand All @@ -256,6 +256,9 @@ private void ShowActionMenu(ShowMenu menu)
gbTarget.IsEnabled = false;
gbAction.Header = "Action : Uninstall";
gbCommand.Visibility = Visibility.Visible;

if (!cfg.AutoUninstall()) return;
ButtonActionUninstall_Click(null, null);
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions ApkManager/Lib/Adb.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
Expand Down Expand Up @@ -216,12 +216,12 @@ public async Task<bool> IsDeviceOnline(string device)
}
catch (Exception e)
{
Debug.Print("Adb.Uninstall: {0}", e.Message);
Debug.Print("Adb.IsDeviceOnline: {0}", e.Message);
return false;
}
finally
{
OVERRIDE_ONREPORTEVENT = true;
OVERRIDE_ONREPORTEVENT = false;
}
}

Expand Down

0 comments on commit f6681e6

Please sign in to comment.