Skip to content

Commit 3a36906

Browse files
committed
1 parent 093c0d7 commit 3a36906

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

app/src/main/java/com/tencent/iot/explorer/link/kitlink/fragment/DeviceFragment.kt

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,11 @@ class DeviceFragment : BaseFragment(), MyCallback, AdapterView.OnItemClickListen
5858
}
5959

6060
override fun startHere(view: View) {
61-
}
62-
63-
override fun onCreateView(
64-
inflater: LayoutInflater,
65-
container: ViewGroup?,
66-
savedInstanceState: Bundle?
67-
): View? {
6861
val categoryKey = arguments!!.getString("CategoryKey", "CategoryKey")
69-
val view = inflater.inflate(getContentView(), container, false)
70-
if (getContentView() != 0) {
71-
devicesGridView = view.findViewById(R.id.gv_devices)
72-
recommendDevicesGridView = view.findViewById(R.id.gv_recommend_devices)
73-
setListener()
74-
HttpRequest.instance.getRecommList(categoryKey, this)
75-
}
76-
return view
62+
devicesGridView = view.findViewById(R.id.gv_devices)
63+
recommendDevicesGridView = view.findViewById(R.id.gv_recommend_devices)
64+
setListener()
65+
HttpRequest.instance.getRecommList(categoryKey, this)
7766
}
7867

7968
override fun fail(msg: String?, reqCode: Int) {

0 commit comments

Comments
 (0)