| 
					
				 | 
			
			
				@@ -15,6 +15,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.chad.library.adapter.base.listener.OnItemClickListener; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.base.router.RouterPath; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.base.ui.activity.BaseMVPActivity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.cooleshow.base.widgets.EmptyViewLayout; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.student.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.student.adapter.AddressListAdapter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.student.bean.AddressBean; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,11 +46,12 @@ public class SelectAddressListActivity extends BaseMVPActivity<ActivitySelectAdd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         switch (view.getId()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             case R.id.tv_add: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ARouter.getInstance().build(RouterPath.MineCenter.MINE_EDIT_ADDRESS) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .withBoolean("isAdd",true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .withBoolean("isAdd", true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         .navigation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     protected void onCreate(@Nullable Bundle savedInstanceState) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         super.onCreate(savedInstanceState); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -66,22 +68,30 @@ public class SelectAddressListActivity extends BaseMVPActivity<ActivitySelectAdd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         LinearLayoutManager manager = new LinearLayoutManager(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rvAddress.setLayoutManager(manager); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         addressListAdapter = new AddressListAdapter(dataList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        setEmptyView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rvAddress.setAdapter(addressListAdapter); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         addressListAdapter.setOnItemClickListener(new OnItemClickListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AddressBean item = (AddressBean) adapter.getItem(position); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Gson gson=new Gson(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Gson gson = new Gson(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String s = gson.toJson(item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Intent intent=new Intent(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                intent.putExtra("selectAddress",s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                setResult(RESULT_OK,intent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Intent intent = new Intent(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                intent.putExtra("selectAddress", s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                setResult(RESULT_OK, intent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 finish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private void setEmptyView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EmptyViewLayout emptyView = new EmptyViewLayout(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        emptyView.setContent(com.cooleshow.base.R.drawable.icon_empty_content, "暂无数据"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        addressListAdapter.setEmptyView(emptyView); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     protected void onResume() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         super.onResume(); 
			 |