From 878c53ee30535ee0ab2ceb25ff2171d1f9d001c8 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 31 Dec 2016 00:14:01 +0800 Subject: [PATCH] Refine profile bandwidth gravity --- .../layout/{layout_profiles_item.xml => layout_profile.xml} | 3 +-- src/main/scala/com/github/shadowsocks/ProfilesFragment.scala | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/main/res/layout/{layout_profiles_item.xml => layout_profile.xml} (98%) diff --git a/src/main/res/layout/layout_profiles_item.xml b/src/main/res/layout/layout_profile.xml similarity index 98% rename from src/main/res/layout/layout_profiles_item.xml rename to src/main/res/layout/layout_profile.xml index 9ddabbb8..c7e6e913 100644 --- a/src/main/res/layout/layout_profiles_item.xml +++ b/src/main/res/layout/layout_profile.xml @@ -63,7 +63,6 @@ diff --git a/src/main/scala/com/github/shadowsocks/ProfilesFragment.scala b/src/main/scala/com/github/shadowsocks/ProfilesFragment.scala index 26ef47ae..640e488b 100644 --- a/src/main/scala/com/github/shadowsocks/ProfilesFragment.scala +++ b/src/main/scala/com/github/shadowsocks/ProfilesFragment.scala @@ -178,7 +178,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic def onBindViewHolder(vh: ProfileViewHolder, i: Int): Unit = vh.bind(profiles(i)) def onCreateViewHolder(vg: ViewGroup, i: Int) = - new ProfileViewHolder(LayoutInflater.from(vg.getContext).inflate(R.layout.layout_profiles_item, vg, false)) + new ProfileViewHolder(LayoutInflater.from(vg.getContext).inflate(R.layout.layout_profile, vg, false)) setHasStableIds(true) // Reason: http://stackoverflow.com/a/32488059/2245107 override def getItemId(position: Int): Long = profiles(position).id