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