Skip to content

Commit

Permalink
refactor #605 Remove CQDN.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Aug 18, 2020
1 parent 3664c7d commit 521ccc9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProvider
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import jp.toastkid.lib.preference.PreferenceApplier
import jp.toastkid.search.SearchCategory
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.databinding.DialogFavoriteSearchAdditionBinding
import jp.toastkid.yobidashi.libs.Inputs
import jp.toastkid.yobidashi.libs.TextInputs
import jp.toastkid.yobidashi.libs.Toaster
import jp.toastkid.lib.preference.PreferenceApplier
import jp.toastkid.search.SearchCategory
import jp.toastkid.yobidashi.search.category.SearchCategoryAdapter
import java.text.MessageFormat

Expand Down Expand Up @@ -61,8 +61,8 @@ class FavoriteSearchAdditionDialogFragment: BottomSheetDialogFragment() {
private fun initSpinner() {
val context = context ?: return
binding.favoriteSearchAdditionCategories.adapter = SearchCategoryAdapter(context)
val index = jp.toastkid.search.SearchCategory.findIndex(
PreferenceApplier(context).getDefaultSearchEngine() ?: jp.toastkid.search.SearchCategory.getDefaultCategoryName()
val index = SearchCategory.findIndex(
PreferenceApplier(context).getDefaultSearchEngine() ?: SearchCategory.getDefaultCategoryName()
)
binding.favoriteSearchAdditionCategories.setSelection(index)
}
Expand Down

0 comments on commit 521ccc9

Please sign in to comment.