Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
d4deaba5
Commit
d4deaba5
authored
Jul 22, 2021
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增食材 闪退 修复
parent
4ad0cf15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/food/NewFoodIngredientsFragment.java
+6
-6
No files found.
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/food/NewFoodIngredientsFragment.java
View file @
d4deaba5
...
...
@@ -172,12 +172,12 @@ public class NewFoodIngredientsFragment extends BaseSupplyChainFragment<NewFoodI
public
void
initAdapter
()
{
infoMultiAdapter
=
new
InfoMultiAdapter
(
mContext
,
mPresenter
.
getFragmentInfo
(
mContext
,
(
v
,
hasFocus
)
->
{
LogUtil
.
e
(
"zjs"
,
" initAdapter currentThread "
+
v
.
isPressed
()+
" hasFocus__"
+
v
.
hasFocus
()+
" hasFocus=="
+
hasFocus
);
if
(
hasFocus
&&
purchaseFoodBean
.
getUnitPrice
()>
0
)
{
InfoMultiBean
infoMultiBean
=
infoMultiAdapter
.
getItem
(
12
);
infoMultiBean
.
setShowValue
(
""
);
purchaseFoodBean
.
setUnitPrice
(
0
d
);
rvNewFoodIngredients
.
postDelayed
(()
->
infoMultiAdapter
.
notifyItemChanged
(
12
),
10
);
}
if
(
hasFocus
&&
purchaseFoodBean
!=
null
&&
purchaseFoodBean
.
getUnitPrice
()>
0
)
{
InfoMultiBean
infoMultiBean
=
infoMultiAdapter
.
getItem
(
12
);
infoMultiBean
.
setShowValue
(
""
);
purchaseFoodBean
.
setUnitPrice
(
0
d
);
rvNewFoodIngredients
.
postDelayed
(()
->
infoMultiAdapter
.
notifyItemChanged
(
12
),
10
);
}
}));
rvNewFoodIngredients
.
addItemDecoration
(
new
DividerItemDecoration
(
mContext
,
VERTICAL_LIST
));
infoMultiAdapter
.
setOnItemClickListener
((
adapter
,
view
,
position
)
->
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment