cn.sharesdk.onekeyshare.CustomerLogo Java Examples

The following examples show how to use cn.sharesdk.onekeyshare.CustomerLogo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlatformPage.java    From POCenter with MIT License 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #2
Source File: PlatformPage.java    From HHComicViewer with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #3
Source File: PlatformPage.java    From LQRWeChat with MIT License 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #4
Source File: PlatformPage.java    From Social with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #5
Source File: PlatformPage.java    From YiZhi with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #6
Source File: PlatformPage.java    From fingerpoetry-android with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #7
Source File: PlatformPage.java    From enjoyshop with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
    ArrayList<Object> cells = new ArrayList<Object>();

    Platform[] platforms = ShareSDK.getPlatformList();
    if (platforms == null) {
        platforms = new Platform[0];
    }
    HashMap<String, String> hides = getHiddenPlatforms();
    if (hides == null) {
        hides = new HashMap<String, String>();
    }
    for (Platform p : platforms) {
        if (!hides.containsKey(p.getName())) {
            cells.add(p);
        }
    }

    ArrayList<CustomerLogo> customers = getCustomerLogos();
    if (customers != null && customers.size() > 0) {
        cells.addAll(customers);
    }

    return cells;
}
 
Example #8
Source File: PlatformPage.java    From GithubApp with Apache License 2.0 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #9
Source File: PlatformPage.java    From BaoKanAndroid with MIT License 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #10
Source File: PlatformPage.java    From LiuAGeAndroid with MIT License 6 votes
protected ArrayList<Object> collectCells() {
	ArrayList<Object> cells = new ArrayList<Object>();

	Platform[] platforms = ShareSDK.getPlatformList();
	if (platforms == null) {
		platforms = new Platform[0];
	}
	HashMap<String, String> hides = getHiddenPlatforms();
	if (hides == null) {
		hides = new HashMap<String, String>();
	}
	for (Platform p : platforms) {
		if (!hides.containsKey(p.getName())) {
			cells.add(p);
		}
	}

	ArrayList<CustomerLogo> customers = getCustomerLogos();
	if (customers != null && customers.size() > 0) {
		cells.addAll(customers);
	}

	return cells;
}
 
Example #11
Source File: PlatformPageAdapter.java    From LQRWeChat with MIT License 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #12
Source File: PlatformPageAdapter.java    From POCenter with MIT License 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #13
Source File: PlatformPage.java    From LQRWeChat with MIT License 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #14
Source File: PlatformPageAdapter.java    From BaoKanAndroid with MIT License 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #15
Source File: PlatformPage.java    From BaoKanAndroid with MIT License 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #16
Source File: PlatformPageAdapter.java    From GithubApp with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = R.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = R.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #17
Source File: PlatformPage.java    From GithubApp with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #18
Source File: PlatformPageAdapter.java    From fingerpoetry-android with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = R.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = R.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #19
Source File: PlatformPage.java    From fingerpoetry-android with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #20
Source File: PlatformPageAdapter.java    From HHComicViewer with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = R.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = R.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #21
Source File: PlatformPage.java    From HHComicViewer with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #22
Source File: PlatformPage.java    From Social with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #23
Source File: PlatformPage.java    From POCenter with MIT License 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #24
Source File: PlatformPageAdapter.java    From YiZhi with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #25
Source File: PlatformPage.java    From YiZhi with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #26
Source File: PlatformPageAdapter.java    From enjoyshop with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #27
Source File: PlatformPage.java    From enjoyshop with Apache License 2.0 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
    beforeFinish = new Runnable() {
        public void run() {
            logo.listener.onClick(v);
        }
    };
    finish();
}
 
Example #28
Source File: PlatformPageAdapter.java    From Social with Apache License 2.0 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = R.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = R.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}
 
Example #29
Source File: PlatformPage.java    From LiuAGeAndroid with MIT License 5 votes
public final void performCustomLogoClick(final View v, final CustomerLogo logo) {
	beforeFinish = new Runnable() {
		public void run() {
			logo.listener.onClick(v);
		}
	};
	finish();
}
 
Example #30
Source File: PlatformPageAdapter.java    From LiuAGeAndroid with MIT License 5 votes
public void onClick(View v) {
	long time = System.currentTimeMillis();
	if (time - lastClickTime < MIN_CLICK_INTERVAL) {
		return;
	}
	lastClickTime = time;

	if (v.getTag() instanceof CustomerLogo) {
		CustomerLogo logo = ResHelper.forceCast(v.getTag());
		page.performCustomLogoClick(v, logo);
	} else {
		Platform plat = ResHelper.forceCast(v.getTag());
		page.showEditPage(plat);
	}
}