mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
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:
parent
7c88042102
commit
ec658fb970
3 changed files with 4 additions and 4 deletions
|
@ -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) );
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue