Skip to content

Commit

Permalink
change the functionof getting local apps
Browse files Browse the repository at this point in the history
  • Loading branch information
seek4 committed Feb 26, 2016
1 parent 4d653e9 commit 6be7a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {

// Local appList获取
localAnalysis = new LocalAnalysis(ControlService.this);
localAnalysis.getLocalApps();
localApps = localAnalysis.localApps;
usrApps = localAnalysis.usrApps;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ public class LocalAnalysis {
private Context context;
public LocalAnalysis(Context context){
this.context = context;
getLocalApps();
//getLocalApps();
}

/**
* 得到当前所有的本地应用及用户应用
* 得到当前所有的本地应用及用户应用,保存在localApps,
* 如果是用户应用,保存在usrApps.
*/
public void getLocalApps(){
localApps = new ArrayList<LocalApp>();
Expand Down

0 comments on commit 6be7a9c

Please sign in to comment.