mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
remove debug toast that can't work from that class
This commit is contained in:
parent
b4096de8ca
commit
96ad615a73
5 changed files with 0 additions and 20 deletions
|
@ -71,11 +71,6 @@ public class XWPrefs {
|
|||
return getPrefsBoolean( context, R.string.key_ignore_fcm, false );
|
||||
}
|
||||
|
||||
public static boolean getToastFCM( Context context )
|
||||
{
|
||||
return getPrefsBoolean( context, R.string.key_show_fcm, false );
|
||||
}
|
||||
|
||||
public static boolean getSMSToSelfEnabled( Context context )
|
||||
{
|
||||
return getPrefsBoolean( context, R.string.key_enable_sms_toself, false );
|
||||
|
|
|
@ -127,7 +127,6 @@
|
|||
<string name="key_enable_sms_toself">key_enable_sms_toself</string>
|
||||
<string name="key_enable_smsproto">key_enable_smsproto</string>
|
||||
<string name="key_ignore_fcm">key_ignore_fcm</string>
|
||||
<string name="key_show_fcm">key_show_fcm</string>
|
||||
<string name="key_nag_intervals">key_nag_intervals</string>
|
||||
<string name="key_download_path">key_download_path</string>
|
||||
<string name="key_got_langdict">key_got_langdict</string>
|
||||
|
|
|
@ -2644,7 +2644,6 @@
|
|||
<string name="ignore_fcm_summary">Mimic life without a google account</string>
|
||||
|
||||
<string name="show_sms_title">Show SMS sends, receives</string>
|
||||
<string name="show_fcm_title">Show FCM receives</string>
|
||||
|
||||
<!-- Shown after "resend messages" menuitem chosen -->
|
||||
<plurals name="resent_msgs_fmt">
|
||||
|
|
|
@ -398,10 +398,6 @@
|
|||
android:summary="@string/ignore_fcm_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
<CheckBoxPreference android:key="@string/key_show_fcm"
|
||||
android:title="@string/show_fcm_title"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
<org.eehouse.android.xw4.XWEditTextPreference
|
||||
android:key="@string/key_relay_host"
|
||||
android:title="@string/relay_host"
|
||||
|
|
|
@ -60,7 +60,6 @@ public class FBMService extends FirebaseMessagingService {
|
|||
|
||||
Map<String, String> data = message.getData();
|
||||
Log.d( TAG, "onMessageReceived(data=%s)", data );
|
||||
boolean toastFCM = XWPrefs.getToastFCM( this );
|
||||
|
||||
String value = data.get( "msgs64" );
|
||||
if ( null != value ) {
|
||||
|
@ -68,10 +67,6 @@ public class FBMService extends FirebaseMessagingService {
|
|||
try {
|
||||
JSONArray msgs64 = new JSONArray( value );
|
||||
String[] strs64 = new String[msgs64.length()];
|
||||
if ( toastFCM ) {
|
||||
DbgUtils.showf( this, "onMessage(): got %d msgs",
|
||||
strs64.length );
|
||||
}
|
||||
|
||||
for ( int ii = 0; ii < strs64.length; ++ii ) {
|
||||
strs64[ii] = msgs64.optString(ii);
|
||||
|
@ -95,9 +90,6 @@ public class FBMService extends FirebaseMessagingService {
|
|||
value = data.get( "getMoves" );
|
||||
if ( null != value && Boolean.parseBoolean( value ) ) {
|
||||
RelayService.timerFired( this );
|
||||
if ( toastFCM ) {
|
||||
DbgUtils.showf( this, "onMessage(): got 'getMoves'" );
|
||||
}
|
||||
}
|
||||
|
||||
value = data.get( "msg" );
|
||||
|
@ -126,7 +118,6 @@ public class FBMService extends FirebaseMessagingService {
|
|||
getTokenAsync( context );
|
||||
}
|
||||
|
||||
Log.d( TAG, "getFCMDevID() => %s", result );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue