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:
Eric House 2019-07-06 19:52:19 -07:00
parent 6fc9ac695d
commit 1485d5944e
2 changed files with 5 additions and 0 deletions

View file

@ -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 )

View file

@ -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"