mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 09:49:25 +02:00
Hide app list sync request during local mode
This commit is contained in:
parent
544c47a41f
commit
42fbdbcd2e
2 changed files with 7 additions and 1 deletions
|
@ -348,6 +348,8 @@ class SetupDeviceFragment : Fragment(), FragmentWithCustomTitle {
|
||||||
|
|
||||||
notifyPermission.observe(viewLifecycleOwner) { NotifyPermissionCard.bind(it, binding.notifyPermissionCard) }
|
notifyPermission.observe(viewLifecycleOwner) { NotifyPermissionCard.bind(it, binding.notifyPermissionCard) }
|
||||||
|
|
||||||
|
logic.fullVersion.isLocalMode.observe(viewLifecycleOwner) { binding.isConnectedMode = !it }
|
||||||
|
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
name="areThereAnyApps"
|
name="areThereAnyApps"
|
||||||
type="Boolean" />
|
type="Boolean" />
|
||||||
|
|
||||||
|
<variable
|
||||||
|
name="isConnectedMode"
|
||||||
|
type="boolean" />
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
@ -207,7 +211,7 @@
|
||||||
layout="@layout/setup_network_time_verification" />
|
layout="@layout/setup_network_time_verification" />
|
||||||
|
|
||||||
<include android:id="@+id/app_list_sync"
|
<include android:id="@+id/app_list_sync"
|
||||||
android:visibility="@{isAddingChild ? View.VISIBLE : View.GONE}"
|
android:visibility="@{isAddingChild && isConnectedMode ? View.VISIBLE : View.GONE}"
|
||||||
layout="@layout/setup_device_app_list_sync" />
|
layout="@layout/setup_device_app_list_sync" />
|
||||||
|
|
||||||
<include android:id="@+id/background_sync"
|
<include android:id="@+id/background_sync"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue