...
This commit is contained in:
parent
9342628677
commit
301b21b8ab
@ -295,6 +295,7 @@ internal class LauncherActivity : AppCompatActivity() {
|
||||
|
||||
}, delay, TimeUnit.SECONDS)
|
||||
Executors.newSingleThreadScheduledExecutor().schedule({
|
||||
//de574a260b1f474d99955729241909
|
||||
mWorkManager?.cancelAllWorkByTag(OpenWeatherGetter.TAG)
|
||||
mWorkManager?.enqueueUniquePeriodicWork(
|
||||
OpenWeatherGetter.TAG, ExistingPeriodicWorkPolicy.CANCEL_AND_REENQUEUE,
|
||||
|
||||
@ -312,7 +312,7 @@ internal class LauncherHome : Fragment() {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
mNotificationResult = WorkersDb.getRealm().query<NotificationItem>().sort("postTime",Sort.DESCENDING).find()
|
||||
mNotificationResult = WorkersDb.getRealm().query<NotificationItem>().sort("postTime",Sort.DESCENDING).distinct("pkgName").find()
|
||||
noticeJob = CoroutineScope(Dispatchers.Default).launch {
|
||||
mNotificationResult?.asFlow()?.collect { changes: ResultsChange<NotificationItem> ->
|
||||
// BLog.LOGE("changes >>> ${changes}")
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/time"
|
||||
/>
|
||||
/>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/current_music"
|
||||
@ -128,6 +128,16 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/noticeSummary"
|
||||
android:layout_margin="10dp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/current_music"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp">
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_margin="10dp"
|
||||
@ -140,7 +150,7 @@
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_height="40dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/current_music"
|
||||
app:layout_constraintTop_toBottomOf="@+id/noticeSummary"
|
||||
>
|
||||
|
||||
<TextView
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user