Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bannedbook committed Jul 4, 2020
1 parent 89f7902 commit c3e4c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ object ProfileManager {
null
}

fun getActiveSSProfiles(): List<Profile>? = getAllProfiles()?.filter { it.profileType=="ss" }

@Throws(IOException::class)
fun getProfilesOrderlySpeed(): List<Profile>? = try {
PrivateDatabase.profileDao.listAllbySpeed()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class UdpFallbackProfileActivity : AppCompatActivity() {
}

inner class ProfilesAdapter : RecyclerView.Adapter<ProfileViewHolder>() {
internal val profiles = (ProfileManager.getActiveProfiles()?.toMutableList() ?: mutableListOf())
internal val profiles = (ProfileManager.getActiveSSProfiles()?.toMutableList() ?: mutableListOf())
.filter { it.id != editingId && PluginConfiguration(it.plugin ?: "").selected.isEmpty() }

override fun onBindViewHolder(holder: ProfileViewHolder, position: Int) =
Expand Down

0 comments on commit c3e4c79

Please sign in to comment.