-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
164 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/zwh/mvparms/eyepetizer/app/utils/CommonUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.zwh.mvparms.eyepetizer.app.utils; | ||
|
||
import android.content.Context; | ||
|
||
import com.jess.arms.integration.cache.Cache; | ||
import com.jess.arms.utils.ArmsUtils; | ||
import com.zwh.mvparms.eyepetizer.app.constants.Constants; | ||
import com.zwh.mvparms.eyepetizer.mvp.model.entity.MyAttentionEntity; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by Administrator on 2018\1\18 0018. | ||
*/ | ||
|
||
public class CommonUtils { | ||
|
||
public static boolean checkFollowed(Context context,int id) { | ||
List<MyAttentionEntity> list = getFollowedInfo(context); | ||
if (list == null) | ||
return false; | ||
for (MyAttentionEntity entity :list){ | ||
if (entity.getId() == id){ | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
public static List<MyAttentionEntity> getFollowedInfo(Context context) { | ||
Cache cache = ArmsUtils.obtainAppComponentFromContext(context).extras(); | ||
List<MyAttentionEntity> list = (List<MyAttentionEntity>) cache.get(Constants.CACHE_FOLLOWED_INFO); | ||
return list; | ||
} | ||
} |
47 changes: 0 additions & 47 deletions
47
app/src/main/java/com/zwh/mvparms/eyepetizer/mvp/model/entity/MyFollowedInfo.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.