Added link opening on homepage

This commit is contained in:
Viktor De Pasquale
2019-10-05 22:04:03 +02:00
parent fe1ce08a6c
commit f1dcecc6cf
2 changed files with 34 additions and 1 deletions
@@ -12,6 +12,7 @@ import com.topjohnwu.magisk.model.entity.MagiskJson
import com.topjohnwu.magisk.model.entity.ManagerJson
import com.topjohnwu.magisk.model.entity.UpdateInfo
import com.topjohnwu.magisk.model.entity.recycler.HomeItem
import com.topjohnwu.magisk.model.events.OpenInappLinkEvent
import com.topjohnwu.magisk.model.observer.Observer
import com.topjohnwu.magisk.redesign.compat.CompatViewModel
import com.topjohnwu.magisk.ui.home.MagiskState
@@ -70,7 +71,7 @@ class HomeViewModel(
}
fun onDeletePressed() {}
fun onLinkPressed(link: String) {}
fun onLinkPressed(link: String) = OpenInappLinkEvent(link).publish()
}