@ -284,10 +284,10 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
if ( result == null )
if ( result == null )
return @registerForActivityResult
return @registerForActivityResult
if ( ! FileUtil . hasExtension ( result .toString ( ) , " keys " ) ) {
if ( ! FileUtil . hasExtension ( result , " keys " ) ) {
MessageDialogFragment . newInstance (
MessageDialogFragment . newInstance (
R . string . reading _keys _failure ,
R . string . reading _keys _failure ,
R . string . install _ keys_failure _extension _description
R . string . install _ prod_ keys_failure _extension _description
) . show ( supportFragmentManager , MessageDialogFragment . TAG )
) . show ( supportFragmentManager , MessageDialogFragment . TAG )
return @registerForActivityResult
return @registerForActivityResult
}
}
@ -379,10 +379,10 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
if ( result == null )
if ( result == null )
return @registerForActivityResult
return @registerForActivityResult
if ( ! FileUtil . hasExtension ( result .toString ( ) , " bin " ) ) {
if ( ! FileUtil . hasExtension ( result , " bin " ) ) {
MessageDialogFragment . newInstance (
MessageDialogFragment . newInstance (
R . string . reading _keys _failure ,
R . string . reading _keys _failure ,
R . string . install _ keys_failure _extension _description
R . string . install _ amiibo_ keys_failure _extension _description
) . show ( supportFragmentManager , MessageDialogFragment . TAG )
) . show ( supportFragmentManager , MessageDialogFragment . TAG )
return @registerForActivityResult
return @registerForActivityResult
}
}