|
|
@@ -70,6 +70,7 @@ import com.handmark.pulltorefresh.library.PullToRefreshListView;
|
|
|
import com.lidroid.xutils.ViewUtils;
|
|
|
import com.me.network.app.http.HttpClient;
|
|
|
import com.me.network.app.http.Method;
|
|
|
+import com.me.network.app.http.impl.RetrofitImpl;
|
|
|
import com.me.network.app.http.rx.ResultListener;
|
|
|
import com.me.network.app.http.rx.ResultSubscriber;
|
|
|
import com.uas.appcontact.R;
|
|
|
@@ -111,8 +112,10 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
|
|
|
setContentView(R.layout.activity_contacts);
|
|
|
ViewUtils.inject(this);
|
|
|
contactsDao = ContactsDao.getInstance();
|
|
|
+
|
|
|
initView();
|
|
|
initData();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private ServiceConnection mServiceConnection = new ServiceConnection() {
|
|
|
@@ -134,7 +137,7 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
|
|
|
mlist = (PullToRefreshListView) findViewById(R.id.mList);
|
|
|
all_sure_cb = (CheckBox) findViewById(R.id.all_sure_cb);
|
|
|
mumber_tv = (TextView) findViewById(R.id.mumber_tv);
|
|
|
-
|
|
|
+
|
|
|
|
|
|
voiceSearchView = (VoiceSearchView) findViewById(R.id.voiceSearchView);
|
|
|
if (getIntent() != null) {
|
|
|
@@ -451,6 +454,7 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
|
|
|
* @author:Arison on 2017/7/19
|
|
|
*/
|
|
|
public void getCaceData(final boolean isHasNet) {
|
|
|
+
|
|
|
ThreadPool.getThreadPool().addTask(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
@@ -881,7 +885,10 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- HttpClient httpClient = new HttpClient.Builder().url(Constants.IM_BASE_URL).isDebug(true).build();
|
|
|
+ HttpClient httpClient = new HttpClient.Builder().url(Constants.IM_BASE_URL)
|
|
|
+ .add("http","hh")
|
|
|
+ .httpBase(RetrofitImpl.getInstance())
|
|
|
+ .isDebug(true).build();
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("/user/appMobileContact")
|
|
|
.isDebug(true)
|