// Path: src/com/gizwits/opensource/appkit/CommonModule/GosConstant.java
// public class GosConstant {
// 
// 	public static List<ScanResult> ssidList = new ArrayList<ScanResult>();
// 
// 	public static int nowPager = -1;
// 
// 	public static List<GizUserInfo> mybindUsers = new ArrayList<GizUserInfo>();
// 
// 	public static List<GizDeviceSharingInfo> mydeviceSharingInfos = new ArrayList<GizDeviceSharingInfo>();
// 
// 	public static List<GizDeviceSharingInfo> newmydeviceSharingInfos = new ArrayList<GizDeviceSharingInfo>();
// 
// 	public static boolean isEdit = false;
// 
// 	public static String mozu = "https://item.taobao.com/item.htm?spm=686.1000925.0.0.nPcYfD&id=542479181481";
// 
// 	// 设备热点默认密码
// 	public static final String SoftAP_PSW = "123456789";
// 	
// 	
// 	// 设备热点默认前缀
// 	public static final String SoftAP_Start = "XPG-GAgent";
// 
// }


import java.util.ArrayList;
import java.util.List;
import com.gizwits.gizwifisdk.api.GizWifiDevice;
import com.gizwits.gizwifisdk.api.GizWifiSDK;
import com.gizwits.gizwifisdk.enumration.GizDeviceSharingUserRole;
import com.gizwits.opensource.appkit.R;
import com.gizwits.opensource.appkit.CommonModule.GosConstant;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
		myadapter1 = new myadapter();

		mListView.setAdapter(myadapter1);

		mListView.setOnItemClickListener(new OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {

				GizWifiDevice wifiDevice = list.get(arg2);

				GizDeviceSharingUserRole sharingRole = wifiDevice.getSharingRole();
				int role = sharingRole.ordinal();
				boolean isgetsharing = false;

				if (role == 2) {
					isgetsharing = true;
				}

				mListView.setEnabled(false);
				mListView.postDelayed(new Runnable() {
					@Override
					public void run() {
						mListView.setEnabled(true);
					}
				}, 1000);
				
				Intent tent = new Intent(getActivity(), SharedDeviceManagerActivity.class);

				GosConstant.mybindUsers.clear();
// Path: src/com/gizwits/opensource/appkit/CommonModule/GosConstant.java
// public class GosConstant {
// 
// 	public static List<ScanResult> ssidList = new ArrayList<ScanResult>();
// 
// 	public static int nowPager = -1;
// 
// 	public static List<GizUserInfo> mybindUsers = new ArrayList<GizUserInfo>();
// 
// 	public static List<GizDeviceSharingInfo> mydeviceSharingInfos = new ArrayList<GizDeviceSharingInfo>();
// 
// 	public static List<GizDeviceSharingInfo> newmydeviceSharingInfos = new ArrayList<GizDeviceSharingInfo>();
// 
// 	public static boolean isEdit = false;
// 
// 	public static String mozu = "https://item.taobao.com/item.htm?spm=686.1000925.0.0.nPcYfD&id=542479181481";
// 
// 	// 设备热点默认密码
// 	public static final String SoftAP_PSW = "123456789";
// 	
// 	
// 	// 设备热点默认前缀
// 	public static final String SoftAP_Start = "XPG-GAgent";
// 
// }


// Path: src/com/gizwits/opensource/appkit/sharingdevice/mySharedFragment.java
import java.util.ArrayList;
import java.util.List;
import com.gizwits.gizwifisdk.api.GizWifiDevice;
import com.gizwits.gizwifisdk.api.GizWifiSDK;
import com.gizwits.gizwifisdk.enumration.GizDeviceSharingUserRole;
import com.gizwits.opensource.appkit.R;
import com.gizwits.opensource.appkit.CommonModule.GosConstant;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

		myadapter1 = new myadapter();

		mListView.setAdapter(myadapter1);

		mListView.setOnItemClickListener(new OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {

				GizWifiDevice wifiDevice = list.get(arg2);

				GizDeviceSharingUserRole sharingRole = wifiDevice.getSharingRole();
				int role = sharingRole.ordinal();
				boolean isgetsharing = false;

				if (role == 2) {
					isgetsharing = true;
				}

				mListView.setEnabled(false);
				mListView.postDelayed(new Runnable() {
					@Override
					public void run() {
						mListView.setEnabled(true);
					}
				}, 1000);
				
				Intent tent = new Intent(getActivity(), SharedDeviceManagerActivity.class);

				GosConstant.mybindUsers.clear();
				GosConstant.mydeviceSharingInfos.clear();