From 69554754b7c1a0dc4a80bd97f4160129f5a591ac Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 23 Jan 2021 13:36:59 +0100 Subject: [PATCH 001/798] 2.8.2.1-dev --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 5fc306291f..f7caa59867 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -120,7 +120,7 @@ android { targetSdkVersion 28 multiDexEnabled true versionCode 1500 - version "2.8.2" + version "2.8.2.1-dev" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"' buildConfigField "String", "REMOTE", '"' + generateGitRemote() + '"' From d66ed2459d11665e96d099522102613f40d84158 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Sat, 23 Jan 2021 14:12:12 +0100 Subject: [PATCH 002/798] CareDialog.kt: Enable notes when saving activities Allows notes (e.g. type of sport, intensity, etc.) when logging activities. --- .../main/java/info/nightscout/androidaps/dialogs/CareDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/CareDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/CareDialog.kt index af6a60797f..3a68ab8b56 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/CareDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/CareDialog.kt @@ -149,7 +149,7 @@ class CareDialog : DialogFragmentWithDate() { } binding.duration.setParams(savedInstanceState?.getDouble("duration") ?: 0.0, 0.0, Constants.MAX_PROFILE_SWITCH_DURATION, 10.0, DecimalFormat("0"), false, binding.okcancel.ok) - if (options == EventType.NOTE || options == EventType.QUESTION || options == EventType.ANNOUNCEMENT) + if (options == EventType.NOTE || options == EventType.QUESTION || options == EventType.ANNOUNCEMENT || options == EventType.EXERCISE) binding.notesLayout.root.visibility = View.VISIBLE // independent to preferences } From 724b52e929d60300c2723f44e631d5079194fd04 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 23 Jan 2021 21:51:59 +0100 Subject: [PATCH 003/798] AutomationPlugin synchronized --- .../plugins/general/automation/AutomationPlugin.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.kt index 2f596cd2c6..86b28e6d6a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.kt @@ -200,7 +200,7 @@ class AutomationPlugin @Inject constructor( } aapsLogger.debug(LTag.AUTOMATION, "processActions") - val iterator = automationEvents.iterator() + val iterator : MutableIterator = automationEvents.iterator() while (iterator.hasNext()) { val event = iterator.next() if (event.isEnabled && event.shouldRun() && event.trigger.shouldRun() && event.getPreconditions().shouldRun()) { @@ -240,11 +240,13 @@ class AutomationPlugin @Inject constructor( storeToSP() // save last run time } + @Synchronized fun add(event: AutomationEvent) { automationEvents.add(event) rxBus.send(EventAutomationDataChanged()) } + @Synchronized fun addIfNotExists(event: AutomationEvent) { for (e in automationEvents) { if (event.title == e.title) return @@ -253,20 +255,24 @@ class AutomationPlugin @Inject constructor( rxBus.send(EventAutomationDataChanged()) } + @Synchronized fun set(event: AutomationEvent, index: Int) { automationEvents[index] = event rxBus.send(EventAutomationDataChanged()) } + @Synchronized fun removeAt(index: Int) { automationEvents.removeAt(index) rxBus.send(EventAutomationDataChanged()) } + @Synchronized fun at(index: Int) = automationEvents[index] fun size() = automationEvents.size + @Synchronized fun swap(fromPosition: Int, toPosition: Int) { Collections.swap(automationEvents, fromPosition, toPosition) rxBus.send(EventAutomationDataChanged()) From 9da8f188b7f48a5771ec01fc55ad31d0d1079a30 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sat, 23 Jan 2021 22:26:18 +0100 Subject: [PATCH 004/798] open app on notification press --- .../plugins/aps/loop/LoopPlugin.java | 6 +-- .../notifications/NotificationStore.kt | 6 ++- .../PersistentNotificationPlugin.kt | 11 +---- .../androidNotification/NotificationHolder.kt | 40 +++++++------------ .../androidNotification/NotificationUtils.kt | 13 ++++++ app/src/main/res/xml/pref_alerts.xml | 2 +- 6 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationUtils.kt diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java index 6b075a1b0f..c8cd892ce5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java @@ -449,14 +449,14 @@ public class LoopPlugin extends PluginBase implements LoopInterface { && resultAfterConstraints.carbsReq >= sp.getInt(R.string.key_smb_enable_carbs_suggestions_threshold, 0) && carbsSuggestionsSuspendedUntil < System.currentTimeMillis() && !treatmentTimethreshold(-15)) { - if (sp.getBoolean(R.string.key_enable_carbs_required_alert_local, true) && !sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, false)) { + if (sp.getBoolean(R.string.key_enable_carbs_required_alert_local, true) && !sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, true)) { Notification carbreqlocal = new Notification(Notification.CARBS_REQUIRED, resultAfterConstraints.getCarbsRequiredText(), Notification.NORMAL); rxBus.send(new EventNewNotification(carbreqlocal)); } if (sp.getBoolean(R.string.key_ns_create_announcements_from_carbs_req, false)) { nsUpload.uploadError(resultAfterConstraints.getCarbsRequiredText()); } - if (sp.getBoolean(R.string.key_enable_carbs_required_alert_local, true) && sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, false)) { + if (sp.getBoolean(R.string.key_enable_carbs_required_alert_local, true) && sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, true)) { Intent intentAction5m = new Intent(context, CarbSuggestionReceiver.class); intentAction5m.putExtra("ignoreDuration", 5); PendingIntent pendingIntent5m = PendingIntent.getBroadcast(context, 1, intentAction5m, PendingIntent.FLAG_UPDATE_CURRENT); @@ -496,7 +496,7 @@ public class LoopPlugin extends PluginBase implements LoopInterface { rxBus.send(new EventNewOpenLoopNotification()); //only send to wear if Native notifications are turned off - if (!sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, false)) { + if (!sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, true)) { // Send to Wear actionStringHandler.get().handleInitiate("changeRequest"); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt index 9d23950e53..a736e78367 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt @@ -15,7 +15,9 @@ import android.widget.Button import android.widget.TextView import androidx.cardview.widget.CardView import androidx.core.app.NotificationCompat +import androidx.core.app.TaskStackBuilder import androidx.recyclerview.widget.RecyclerView +import info.nightscout.androidaps.MainActivity import info.nightscout.androidaps.R import info.nightscout.androidaps.logging.AAPSLogger import info.nightscout.androidaps.logging.LTag @@ -23,6 +25,7 @@ import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.general.overview.events.EventDismissNotification import info.nightscout.androidaps.services.AlarmSoundServiceHelper import info.nightscout.androidaps.utils.DateUtil +import info.nightscout.androidaps.utils.androidNotification.openAppIntent import info.nightscout.androidaps.utils.resources.IconsProvider import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.sharedPreferences.SP @@ -68,7 +71,7 @@ class NotificationStore @Inject constructor( } } store.add(n) - if (sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, false) && n !is NotificationWithAction) { + if (sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, true) && n !is NotificationWithAction) { raiseSystemNotification(n) if (usesChannels && n.soundId != null && n.soundId != 0) alarmSoundServiceHelper.startAlarm(context, n.soundId) } else { @@ -113,6 +116,7 @@ class NotificationStore @Inject constructor( .setStyle(NotificationCompat.BigTextStyle().bigText(n.text)) .setPriority(NotificationCompat.PRIORITY_MAX) .setDeleteIntent(deleteIntent(n.id)) + .setContentIntent(openAppIntent(context)) if (n.level == Notification.URGENT) { notificationBuilder.setVibrate(longArrayOf(1000, 1000, 1000, 1000)) .setContentTitle(resourceHelper.gs(R.string.urgent_alarm)) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/persistentNotification/PersistentNotificationPlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/persistentNotification/PersistentNotificationPlugin.kt index c5ee21253e..b26b84cfed 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/persistentNotification/PersistentNotificationPlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/persistentNotification/PersistentNotificationPlugin.kt @@ -23,6 +23,7 @@ import info.nightscout.androidaps.plugins.iob.iobCobCalculator.events.EventAutos import info.nightscout.androidaps.utils.DecimalFormatter import info.nightscout.androidaps.utils.FabricPrivacy import info.nightscout.androidaps.utils.androidNotification.NotificationHolder +import info.nightscout.androidaps.utils.androidNotification.openAppIntent import info.nightscout.androidaps.utils.resources.IconsProvider import info.nightscout.androidaps.utils.resources.ResourceHelper import io.reactivex.disposables.CompositeDisposable @@ -215,15 +216,7 @@ class PersistentNotificationPlugin @Inject constructor( .setUnreadConversation(unreadConversationBuilder.build())) } /// End Android Auto - val resultIntent = Intent(context, MainActivity::class.java) - val stackBuilder = TaskStackBuilder.create(context) - stackBuilder.addParentStack(MainActivity::class.java) - stackBuilder.addNextIntent(resultIntent) - val resultPendingIntent = stackBuilder.getPendingIntent( - 0, - PendingIntent.FLAG_UPDATE_CURRENT - ) - builder.setContentIntent(resultPendingIntent) + builder.setContentIntent(openAppIntent(context)) val mNotificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager val notification = builder.build() mNotificationManager.notify(notificationHolder.notificationID, notification) diff --git a/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationHolder.kt b/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationHolder.kt index 028c63086e..77df9dbc69 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationHolder.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationHolder.kt @@ -2,13 +2,8 @@ package info.nightscout.androidaps.utils.androidNotification import android.app.Notification import android.app.NotificationManager -import android.app.PendingIntent import android.content.Context -import android.content.Intent import androidx.core.app.NotificationCompat -import androidx.core.app.TaskStackBuilder -import info.nightscout.androidaps.MainActivity -import info.nightscout.androidaps.MainApp import info.nightscout.androidaps.R import info.nightscout.androidaps.interfaces.NotificationHolderInterface import info.nightscout.androidaps.utils.resources.IconsProvider @@ -18,28 +13,23 @@ import javax.inject.Singleton @Singleton class NotificationHolder @Inject constructor( - private val resourceHelper: ResourceHelper, - private val context: Context, - private val iconsProvider: IconsProvider + resourceHelper: ResourceHelper, + context: Context, + iconsProvider: IconsProvider ) : NotificationHolderInterface { override val channelID = "AndroidAPS-Ongoing" override val notificationID = 4711 - override lateinit var notification: Notification - - init { - val stackBuilder = TaskStackBuilder.create(context) - .addParentStack(MainActivity::class.java) - .addNextIntent(Intent(context, MainApp::class.java)) - val builder = NotificationCompat.Builder(context, channelID) - .setOngoing(true) - .setOnlyAlertOnce(true) - .setCategory(NotificationCompat.CATEGORY_STATUS) - .setSmallIcon(iconsProvider.getNotificationIcon()) - .setLargeIcon(resourceHelper.decodeResource(iconsProvider.getIcon())) - .setContentTitle(resourceHelper.gs(R.string.loading)) - .setContentIntent(stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT)) - notification = builder.build() - (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).notify(notificationID, notification) - } + override var notification: Notification = NotificationCompat.Builder(context, channelID) + .setOngoing(true) + .setOnlyAlertOnce(true) + .setCategory(NotificationCompat.CATEGORY_STATUS) + .setSmallIcon(iconsProvider.getNotificationIcon()) + .setLargeIcon(resourceHelper.decodeResource(iconsProvider.getIcon())) + .setContentTitle(resourceHelper.gs(R.string.loading)) + .setContentIntent(openAppIntent(context)) + .build() + .also { + (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).notify(notificationID, it) + } } diff --git a/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationUtils.kt b/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationUtils.kt new file mode 100644 index 0000000000..26787bd135 --- /dev/null +++ b/app/src/main/java/info/nightscout/androidaps/utils/androidNotification/NotificationUtils.kt @@ -0,0 +1,13 @@ +package info.nightscout.androidaps.utils.androidNotification + +import android.app.PendingIntent +import android.content.Context +import android.content.Intent +import androidx.core.app.TaskStackBuilder +import info.nightscout.androidaps.MainActivity + +fun openAppIntent(context: Context): PendingIntent? = TaskStackBuilder.create(context).run { + addParentStack(MainActivity::class.java) + addNextIntent(Intent(context, MainActivity::class.java)) + getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT) +} \ No newline at end of file diff --git a/app/src/main/res/xml/pref_alerts.xml b/app/src/main/res/xml/pref_alerts.xml index 77c9b126d8..ab5111d624 100644 --- a/app/src/main/res/xml/pref_alerts.xml +++ b/app/src/main/res/xml/pref_alerts.xml @@ -43,7 +43,7 @@ validate:testType="numericRange" /> From 4e3506007f55cf44ba8e0efac4bbe39210403867 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 23 Jan 2021 22:42:13 +0100 Subject: [PATCH 005/798] WearFragment, SkinInterface -> jetpack --- .../plugins/general/wear/WearFragment.kt | 25 +++++-- .../androidaps/skins/SkinInterface.kt | 65 +++++++++---------- app/src/main/res/layout/wear_fragment.xml | 4 +- 3 files changed, 53 insertions(+), 41 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/WearFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/WearFragment.kt index 105e2589c0..91ed047770 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/WearFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/WearFragment.kt @@ -5,21 +5,34 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import dagger.android.support.DaggerFragment -import info.nightscout.androidaps.R -import kotlinx.android.synthetic.main.wear_fragment.* +import info.nightscout.androidaps.databinding.WearFragmentBinding import javax.inject.Inject class WearFragment : DaggerFragment() { + @Inject lateinit var wearPlugin: WearPlugin + private var _binding: WearFragmentBinding? = null + + // This property is only valid between onCreateView and + // onDestroyView. + private val binding get() = _binding!! + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle?): View? { - return inflater.inflate(R.layout.wear_fragment, container, false) + savedInstanceState: Bundle?): View { + _binding = WearFragmentBinding.inflate(inflater, container, false) + return binding.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - wear_resend.setOnClickListener { wearPlugin.resendDataToWatch() } - wear_opensettings.setOnClickListener { wearPlugin.openSettings() } + binding.resend.setOnClickListener { wearPlugin.resendDataToWatch() } + binding.opensettings.setOnClickListener { wearPlugin.openSettings() } + } + + @Synchronized + override fun onDestroyView() { + super.onDestroyView() + _binding = null } } \ No newline at end of file diff --git a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt index c9f8e7d1ca..a63011af52 100644 --- a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt +++ b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt @@ -9,9 +9,6 @@ import androidx.annotation.LayoutRes import androidx.annotation.StringRes import androidx.constraintlayout.widget.ConstraintLayout import info.nightscout.androidaps.R -import kotlinx.android.synthetic.main.overview_fragment_nsclient.view.* -import kotlinx.android.synthetic.main.overview_info_layout.view.* -import kotlinx.android.synthetic.main.overview_statuslights_layout.view.* interface SkinInterface { @@ -33,52 +30,54 @@ interface SkinInterface { val landscape = screenHeight < screenWidth if (landscape) { - val iobLayoutParams = view.overview_iob_llayout.layoutParams as ConstraintLayout.LayoutParams + val iobLayout = view.findViewById(R.id.overview_iob_llayout) + val iobLayoutParams = iobLayout.layoutParams as ConstraintLayout.LayoutParams + val timeLayout = view.findViewById(R.id.overview_time_llayout) iobLayoutParams.startToStart = ConstraintLayout.LayoutParams.UNSET - iobLayoutParams.startToEnd = view.overview_time_llayout.id + iobLayoutParams.startToEnd = timeLayout.id iobLayoutParams.topToBottom = ConstraintLayout.LayoutParams.UNSET iobLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID - val timeLayoutParams = view.overview_time_llayout.layoutParams as ConstraintLayout.LayoutParams + val timeLayoutParams = timeLayout.layoutParams as ConstraintLayout.LayoutParams timeLayoutParams.endToEnd = ConstraintLayout.LayoutParams.UNSET - timeLayoutParams.endToStart = view.overview_iob_llayout.id - val cobLayoutParams = view.overview_cob_llayout.layoutParams as ConstraintLayout.LayoutParams + timeLayoutParams.endToStart = iobLayout.id + val cobLayoutParams = view.findViewById(R.id.overview_cob_llayout).layoutParams as ConstraintLayout.LayoutParams cobLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID - val basalLayoutParams = view.overview_basal_llayout.layoutParams as ConstraintLayout.LayoutParams + val basalLayoutParams = view.findViewById(R.id.overview_basal_llayout).layoutParams as ConstraintLayout.LayoutParams basalLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID - val extendedLayoutParams = view.overview_extended_llayout.layoutParams as ConstraintLayout.LayoutParams + val extendedLayoutParams = view.findViewById(R.id.overview_extended_llayout).layoutParams as ConstraintLayout.LayoutParams extendedLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID - val asLayoutParams = view.overview_as_llayout.layoutParams as ConstraintLayout.LayoutParams + val asLayoutParams = view.findViewById(R.id.overview_as_llayout).layoutParams as ConstraintLayout.LayoutParams asLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID if (isTablet) { for (v in listOf( - view.overview_bg, - view.overview_time, - view.overview_timeagoshort, - view.overview_iob, - view.overview_cob, - view.overview_basebasal, - view.overview_extendedbolus, - view.overview_sensitivity + view.findViewById(R.id.overview_bg), + view.findViewById(R.id.overview_time), + view.findViewById(R.id.overview_timeagoshort), + view.findViewById(R.id.overview_iob), + view.findViewById(R.id.overview_cob), + view.findViewById(R.id.overview_basebasal), + view.findViewById(R.id.overview_extendedbolus), + view.findViewById(R.id.overview_sensitivity) )) v?.setTextSize(COMPLEX_UNIT_PX, v.textSize * 1.5f) for (v in listOf( - view.overview_pump, - view.overview_openaps, - view.overview_uploader, - view.careportal_canulaage, - view.careportal_insulinage, - view.careportal_reservoirlevel, - view.careportal_reservoirlevel, - view.careportal_sensorage, - view.careportal_pbage, - view.careportal_batterylevel + view.findViewById(R.id.overview_pump), + view.findViewById(R.id.overview_openaps), + view.findViewById(R.id.overview_uploader), + view.findViewById(R.id.careportal_canulaage), + view.findViewById(R.id.careportal_insulinage), + view.findViewById(R.id.careportal_reservoirlevel), + view.findViewById(R.id.careportal_reservoirlevel), + view.findViewById(R.id.careportal_sensorage), + view.findViewById(R.id.careportal_pbage), + view.findViewById(R.id.careportal_batterylevel) )) v?.setTextSize(COMPLEX_UNIT_PX, v.textSize * 1.3f) - view.overview_time_llayout?.orientation = LinearLayout.HORIZONTAL - view.overview_timeagoshort?.setTextSize(COMPLEX_UNIT_PX, view.overview_time.textSize) + timeLayout?.orientation = LinearLayout.HORIZONTAL + view.findViewById(R.id.overview_timeagoshort)?.setTextSize(COMPLEX_UNIT_PX, view.findViewById(R.id.overview_time).textSize) - view.overview_delta_large?.visibility = View.VISIBLE + view.findViewById(R.id.overview_delta_large)?.visibility = View.VISIBLE } else { - view.overview_delta_large?.visibility = View.GONE + view.findViewById(R.id.overview_delta_large)?.visibility = View.GONE } } } diff --git a/app/src/main/res/layout/wear_fragment.xml b/app/src/main/res/layout/wear_fragment.xml index 777a6bbffa..bda2425367 100644 --- a/app/src/main/res/layout/wear_fragment.xml +++ b/app/src/main/res/layout/wear_fragment.xml @@ -11,7 +11,7 @@ android:orientation="vertical">