-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Unable to delete autocomplete history items #5168
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ import com.duckduckgo.app.tabs.model.TabSelectionEntity | |
import com.duckduckgo.common.utils.swap | ||
import com.duckduckgo.di.scopes.AppScope | ||
import dagger.SingleInstanceIn | ||
import io.reactivex.Single | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
@Dao | ||
|
@@ -45,10 +44,6 @@ abstract class TabsDao { | |
@Query("select * from tabs where deletable is 0 order by position") | ||
abstract fun flowTabs(): Flow<List<TabEntity>> | ||
|
||
// TODO: ANA to remove this | ||
@Query("select * from tabs where deletable is 0 order by position") | ||
abstract fun singleTabs(): Single<List<TabEntity>> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed also some unused code. |
||
|
||
@Query("select * from tabs where deletable is 0 order by position") | ||
abstract fun liveTabs(): LiveData<List<TabEntity>> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ import com.duckduckgo.common.utils.DispatcherProvider | |
import com.duckduckgo.di.scopes.AppScope | ||
import dagger.SingleInstanceIn | ||
import io.reactivex.Scheduler | ||
import io.reactivex.Single | ||
import io.reactivex.schedulers.Schedulers | ||
import java.util.UUID | ||
import javax.inject.Inject | ||
|
@@ -82,8 +81,6 @@ class TabDataRepository @Inject constructor( | |
|
||
private var purgeDeletableTabsJob = ConflatedJob() | ||
|
||
override fun getTabsObservable(): Single<List<TabEntity>> = tabsDao.singleTabs() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, removed unused code. |
||
|
||
override suspend fun add( | ||
url: String?, | ||
skipHome: Boolean, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,10 +35,6 @@ dependencies { | |
|
||
// LiveData | ||
implementation AndroidX.lifecycle.liveDataKtx | ||
|
||
// TODO: ANA to remove this | ||
implementation "io.reactivex.rxjava2:rxjava:_" | ||
implementation "io.reactivex.rxjava2:rxandroid:_" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed unneeded dependencies. |
||
} | ||
android { | ||
namespace 'com.duckduckgo.browser.api' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MutableLiveData | ||
import com.duckduckgo.app.global.model.Site | ||
import com.duckduckgo.app.tabs.model.TabSwitcherData.LayoutType | ||
import io.reactivex.Single | ||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.SharedFlow | ||
|
||
|
@@ -44,8 +43,6 @@ interface TabRepository { | |
|
||
val tabSwitcherData: Flow<TabSwitcherData> | ||
|
||
fun getTabsObservable(): Single<List<TabEntity>> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused. |
||
|
||
/** | ||
* @return tabId of new record | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this.