load */* rather than x-zip

After a hard-reset I can't open an archive file if I'm looking for
x-zip, because, I guess, the mime type is something the OS records
rather than deduced from the file. With this change, I can export,
hard-reset, and then import the file to get my settings and games
going again.
This commit is contained in:
Eric House 2022-06-13 14:23:47 -07:00
parent 7c88042102
commit ec658fb970
3 changed files with 4 additions and 4 deletions

View file

@ -1599,7 +1599,7 @@ public class GamesListDelegate extends ListDelegateBase
}
Intent intent = new Intent( intentAction );
intent.addCategory( Intent.CATEGORY_OPENABLE );
intent.setType( ZipUtils.getMimeType() );
intent.setType( ZipUtils.getMimeType( isStore ) );
if ( isStore ) {
intent.putExtra( Intent.EXTRA_TITLE, ZipUtils.getFileName(m_activity) );
}

View file

@ -61,8 +61,8 @@ public class ZipUtils {
int explID() { return mExpl; }
};
static String getMimeType() {
return "application/x-zip";
static String getMimeType( boolean isStore ) {
return isStore ? "application/x-zip" : "*/*";
// return "application/octet-stream";
}

View file

@ -381,7 +381,7 @@ public class GameSummary implements Serializable {
// Make sure it's big enough
Assert.assertTrue( 0 == (~FORCE_CHANNEL_MASK & m_gi.forceChannel) );
result |= m_gi.forceChannel << FORCE_CHANNEL_OFFSET;
Log.d( TAG, "giflags(): adding forceChannel %d", m_gi.forceChannel );
// Log.d( TAG, "giflags(): adding forceChannel %d", m_gi.forceChannel );
}
return result;
}