mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +01:00
disable attachments as part of invitations -- for now.
This commit is contained in:
parent
8b5ec28120
commit
74fec9d3d3
3 changed files with 29 additions and 25 deletions
|
@ -134,14 +134,14 @@
|
||||||
/>
|
/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter>
|
<!-- <intent-filter> -->
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<!-- <action android:name="android.intent.action.VIEW" /> -->
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<!-- <category android:name="android.intent.category.BROWSABLE" /> -->
|
||||||
<data android:mimeType="*/*"
|
<!-- <data android:mimeType="*/*" -->
|
||||||
android:scheme="content"
|
<!-- android:scheme="content" -->
|
||||||
/>
|
<!-- /> -->
|
||||||
</intent-filter>
|
<!-- </intent-filter> -->
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<!-- downloading dicts -->
|
<!-- downloading dicts -->
|
||||||
|
|
|
@ -549,7 +549,8 @@ public class GameUtils {
|
||||||
intent.putExtra( Intent.EXTRA_SUBJECT, subject );
|
intent.putExtra( Intent.EXTRA_SUBJECT, subject );
|
||||||
intent.putExtra( Intent.EXTRA_TEXT, Html.fromHtml(message) );
|
intent.putExtra( Intent.EXTRA_TEXT, Html.fromHtml(message) );
|
||||||
|
|
||||||
File tmpdir = DictUtils.getDownloadDir( context );
|
File tmpdir = XWApp.ATTACH_SUPPORTED ?
|
||||||
|
DictUtils.getDownloadDir( context ) : null;
|
||||||
if ( null == tmpdir ) { // no attachment
|
if ( null == tmpdir ) { // no attachment
|
||||||
intent.setType( "message/rfc822");
|
intent.setType( "message/rfc822");
|
||||||
} else {
|
} else {
|
||||||
|
@ -924,6 +925,7 @@ public class GameUtils {
|
||||||
int lang, String dict, int nPlayers )
|
int lang, String dict, int nPlayers )
|
||||||
{
|
{
|
||||||
File result = null;
|
File result = null;
|
||||||
|
if ( XWApp.ATTACH_SUPPORTED ) {
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
try {
|
try {
|
||||||
json.put( MultiService.ROOM, room );
|
json.put( MultiService.ROOM, room );
|
||||||
|
@ -942,6 +944,7 @@ public class GameUtils {
|
||||||
} catch ( Exception ex ) {
|
} catch ( Exception ex ) {
|
||||||
DbgUtils.loge( ex );
|
DbgUtils.loge( ex );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class XWApp extends Application {
|
||||||
public static final boolean BTSUPPORTED = false;
|
public static final boolean BTSUPPORTED = false;
|
||||||
public static final boolean SMSSUPPORTED = true;
|
public static final boolean SMSSUPPORTED = true;
|
||||||
public static final boolean GCMSUPPORTED = true;
|
public static final boolean GCMSUPPORTED = true;
|
||||||
|
public static final boolean ATTACH_SUPPORTED = false;
|
||||||
public static final boolean DEBUG = false;
|
public static final boolean DEBUG = false;
|
||||||
|
|
||||||
public static final String SMS_PUBLIC_HEADER = "-XW4";
|
public static final String SMS_PUBLIC_HEADER = "-XW4";
|
||||||
|
|
Loading…
Reference in a new issue