mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
hide show-fcm-receives pref when FCM not built in
I just spent an hour trying to understand why fcm wasn't working against the f-droid build. This should make that less likely to happen again.
This commit is contained in:
parent
6fc9ac695d
commit
1485d5944e
2 changed files with 5 additions and 0 deletions
|
@ -383,6 +383,10 @@ public class PrefsDelegate extends DelegateBase
|
|||
if ( ! BuildConfig.WIDIR_ENABLED ) {
|
||||
hideOne( R.string.key_enable_p2p, R.string.key_network_behavior );
|
||||
}
|
||||
|
||||
if ( null == FBMService.getFCMDevID( m_activity ) ) {
|
||||
hideOne( R.string.key_show_fcm, R.string.pref_group_relay_title );
|
||||
}
|
||||
}
|
||||
|
||||
public static void launch( Context context )
|
||||
|
|
|
@ -398,6 +398,7 @@
|
|||
|
||||
<PreferenceScreen android:title="@string/pref_group_relay_title"
|
||||
android:summary="@string/pref_group_relay_summary"
|
||||
android:key="@string/pref_group_relay_title"
|
||||
>
|
||||
<org.eehouse.android.xw4.XWListPreference
|
||||
android:key="@string/key_relay_poll"
|
||||
|
|
Loading…
Reference in a new issue