a4d413b0244fR448">448
}
} else {
if (!showedPrivateProtocol) {
rl_privacy_protocol.setVisibility(View.VISIBLE);
}
// if (gestureguide == true) {
// new Handler().postDelayed(new Runnable() {
// public void run() {
@ -481,9 +495,15 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
// }, 5000);
// ProfileManager.getInstance().setFirstssyd(getActivity(), true);
// }
if (!showedPrivateProtocol) {
rl_privacy_protocol.setVisibility(View.VISIBLE);
}
}
} catch (Exception e) {
e.printStackTrace();
if (!showedPrivateProtocol) {
rl_privacy_protocol.setVisibility(View.VISIBLE);
}
}
@ -1173,6 +1193,10 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
SharedPreferencesUtil sharedPreferencesUtil = new SharedPreferencesUtil(getApplication());
if (!sharedPreferencesUtil.hasKey("cdz_private_protocol")) {
return;
}
if (MainApplication.isFirstExample == true) {
@ -1421,6 +1445,16 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
//首页广告关闭按钮
iv_clear = (ImageView) findViewById(R.id.iv_clear);
iv_clear.setOnClickListener(this);
// 首页隐私协议
rl_privacy_protocol = findViewById(R.id.rl_privacy_protocol);
rl_privacy_protocol.setOnClickListener(this);
private_protocol_sure_and_go = findViewById(R.id.private_protocol_sure_and_go);
private_protocol_sure_and_go.setOnClickListener(this);
private_protocol_web = findViewById(R.id.private_protocol_web);
private_protocol_web.setOnClickListener(this);
tv_citynotice = (RelativeLayout) findViewById(R.id.tv_citynotice);
tv_citynotice.setOnClickListener(new View.OnClickListener() {
@Override
@ -2325,6 +2359,7 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
hand.sendMessage(mes);
}
Toast.makeText(getApplication(), msg, Toast.LENGTH_SHORT).show();
Toast.makeText(getApplication(), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", Toast.LENGTH_SHORT).show();
} catch (Exception e) {
}
}
@ -3084,6 +3119,18 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
case R.id.iv_clear:
rl_ad.setVisibility(View.GONE);
break;
case R.id.private_protocol_sure_and_go:
sharedPreferencesUtil.putBoolean("cdz_private_protocol", true);
rl_privacy_protocol.setVisibility(View.GONE);
break;
case R.id.private_protocol_web:
sharedPreferencesUtil.putBoolean("cdz_private_protocol", true);
rl_privacy_protocol.setVisibility(View.GONE);
intent = new Intent(getApplication(), IntegralDescriptionActivity.class);
intent.putExtra("url", "http://evcharge.cc/pc/agreement.html");
startActivity(intent);
break;
case R.id.rl_search:
if (isListShow == false) {
windowLayout.setVisibility(View.GONE);
|
||
| 1548 | 1548 |
|
| 1549 | 1549 |
|
| 1550 | 1550 |
|
| 1551 |
|
|
| 1552 |
|
|
| 1553 | 1551 |
|
| 1552 |
|
|
| 1553 |
|
|
| 1554 | 1554 |
|
| 1555 | 1555 |
|
| 1556 | 1556 |
|
| 1557 |
|
|
| 1558 |
|
|
| 1557 |
|
|
| 1558 |
|
|
| 1559 | 1559 |
|
| 1560 | 1560 |
|
| 1561 | 1561 |
|
|
||
| 1683 | 1683 |
|
| 1684 | 1684 |
|
| 1685 | 1685 |
|
| 1686 |
|
|
| 1687 |
|
|
| 1688 |
|
|
| 1689 |
|
|
| 1690 |
|
|
| 1691 |
|
|
| 1692 |
|
|
| 1693 |
|
|
| 1694 |
|
|
| 1695 |
|
|
| 1696 |
|
|
| 1697 |
|
|
| 1698 |
|
|
| 1699 |
|
|
| 1700 |
|
|
| 1701 |
|
|
| 1702 |
|
|
| 1703 |
|
|
| 1704 |
|
|
| 1705 |
|
|
| 1706 |
|
|
| 1707 |
|
|
| 1708 |
|
|
| 1709 |
|
|
| 1710 |
|
|
| 1711 |
|
|
| 1712 |
|
|
| 1713 |
|
|
| 1714 |
|
|
| 1715 |
|
|
| 1716 |
|
|
| 1717 |
|
|
| 1718 |
|
|
| 1719 | 1686 |
|
| 1720 | 1687 |
|
| 1721 | 1688 |
|
|
||
| 1802 | 1769 |
|
| 1803 | 1770 |
|
| 1804 | 1771 |
|
| 1772 |
|
|
| 1773 |
|
|
| 1774 |
|
|
| 1775 |
|
|
| 1776 |
|
|
| 1777 |
|
|
| 1778 |
|
|
| 1779 |
|
|
| 1780 |
|
|
| 1781 |
|
|
| 1782 |
|
|
| 1783 |
|
|
| 1784 |
|
|
| 1785 |
|
|
| 1786 |
|
|
| 1787 |
|
|
| 1788 |
|
|
| 1789 |
|
|
| 1790 |
|
|
| 1791 |
|
|
| 1792 |
|
|
| 1793 |
|
|
| 1794 |
|
|
| 1795 |
|
|
| 1796 |
|
|
| 1797 |
|
|
| 1798 |
|
|
| 1799 |
|
|
| 1800 |
|
|
| 1801 |
|
|
| 1802 |
|
|
| 1803 |
|
|
| 1804 |
|
|
| 1805 |
|
|
| 1806 |
|
|
| 1807 |
|
|
| 1808 |
|
|
| 1809 |
|
|
| 1810 |
|
|
| 1811 |
|
|
| 1812 |
|
|
| 1813 |
|
|
| 1814 |
|
|
| 1815 |
|
|
| 1816 |
|
|
| 1817 |
|
|
| 1818 |
|
|
| 1819 |
|
|
| 1820 |
|
|
| 1821 |
|
|
| 1822 |
|
|
| 1823 |
|
|
| 1824 |
|
|
| 1825 |
|
|
| 1826 |
|
|
| 1827 |
|
|
| 1828 |
|
|
| 1829 |
|
|
| 1830 |
|
|
| 1831 |
|
|
| 1832 |
|
|
| 1833 |
|
|
| 1834 |
|
|
| 1835 |
|
|
| 1836 |
|
|
| 1837 |
|
|
| 1838 |
|
|
| 1839 |
|
|
| 1840 |
|
|
| 1841 |
|
|
| 1842 |
|
|
| 1843 |
|
|
| 1844 |
|
|
| 1845 |
|
|
| 1846 |
|
|
| 1847 |
|
|
| 1848 |
|
|
| 1849 |
|
|
| 1805 | 1850 |
|
| 1806 | 1851 |
|