@@ -752,14 +752,14 @@ public async Task InitADBFile()
752752 {
753753 XamlRoot = _page ? . XamlRoot ,
754754 Title = _loader . GetString ( "ADBMissing" ) ,
755- PrimaryButtonText = _loader . GetString ( "Download" ) ,
755+ // PrimaryButtonText = _loader.GetString("Download"),
756756 SecondaryButtonText = _loader . GetString ( "Select" ) ,
757757 CloseButtonText = _loader . GetString ( "Cancel" ) ,
758758 Content = new ScrollViewer
759759 {
760760 Content = StackPanel
761761 } ,
762- DefaultButton = ContentDialogButton . Primary
762+ DefaultButton = ContentDialogButton . Secondary
763763 } ;
764764 ProgressHelper . SetState ( ProgressState . None , true ) ;
765765 ContentDialogResult result = await dialog . ShowAsync ( ) ;
@@ -794,6 +794,7 @@ public async Task InitADBFile()
794794 }
795795 else
796796 {
797+ await ReinitializeUI ( ) ;
797798 return ;
798799 }
799800 }
@@ -818,6 +819,7 @@ public async Task InitADBFile()
818819 }
819820 else
820821 {
822+ await ReinitializeUI ( ) ;
821823 return ;
822824 }
823825 }
@@ -837,15 +839,19 @@ public async Task InitADBFile()
837839 }
838840
839841 StorageFile file = await FileOpen . PickSingleFileAsync ( ) ;
840- if ( file != null )
842+ if ( file == null )
843+ {
844+ goto checkadb ;
845+ }
846+ else
841847 {
842848 ADBPath = file . Path ;
843849 }
844850 }
845851 else
846852 {
847853 SendResults ( new Exception ( _loader . GetString ( "ADBMissing" ) ) ) ;
848- Application . Current . Exit ( ) ;
854+ await ReinitializeUI ( ) ;
849855 return ;
850856 }
851857 }
@@ -1285,11 +1291,6 @@ private async Task ReinitializeUI()
12851291 WaitProgressText = _loader . GetString ( "Loading" ) ;
12861292 if ( ( ! string . IsNullOrWhiteSpace ( _path ) || _url != null ) && NetAPKExist )
12871293 {
1288- if ( ! IsADBReady )
1289- {
1290- ResetUI ( ) ;
1291- return ;
1292- }
12931294 checkdevice :
12941295 if ( await CheckDevice ( ) && _device != null )
12951296 {
0 commit comments