-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,7 @@ | |
我因此也花费了不少时间与精力,如果这个软件帮助到你了,你又想请我喝杯咖啡,可以通过支付宝的方式,给我打赏,非常感谢。 | ||
</p> | ||
<p> | ||
我的支付宝账号:<b>[email protected]</b> | ||
</p> | ||
<p> | ||
点击下面的按钮 复制账号并打开支付宝,即可转账打赏,再次感谢你的支持。 | ||
点击下面的按钮 打开支付宝转账页面,即可转账打赏,再次感谢你的支持。 | ||
</p> | ||
|
||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,6 @@ | |
|
||
package com.gudong.appkit.ui.activity; | ||
|
||
import android.content.ClipData; | ||
import android.content.ClipboardManager; | ||
import android.content.Context; | ||
import android.content.DialogInterface; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
|
@@ -43,8 +40,6 @@ | |
import android.widget.Toast; | ||
|
||
import com.gudong.appkit.R; | ||
import com.gudong.appkit.dao.AppEntity; | ||
import com.gudong.appkit.dao.DataHelper; | ||
import com.gudong.appkit.dao.WeChatHelper; | ||
import com.gudong.appkit.event.EEvent; | ||
import com.gudong.appkit.event.RxBus; | ||
|
@@ -60,6 +55,7 @@ | |
|
||
import hotchemi.android.rate.AppRate; | ||
import hotchemi.android.rate.OnClickButtonListener; | ||
import moe.feng.alipay.zerosdk.AlipayZeroSdk; | ||
import rx.functions.Action1; | ||
|
||
public class MainActivity extends BaseActivity { | ||
|
@@ -217,19 +213,8 @@ private void showDonateDialog() { | |
getString(R.string.action_copy_to_clipboard),new DialogInterface.OnClickListener(){ | ||
@Override | ||
public void onClick(DialogInterface dialog, int which) { | ||
String alipay = "com.eg.android.AlipayGphone"; | ||
AppEntity alipayApp = DataHelper.getAppByPackageName(alipay); | ||
if(alipayApp!=null){ | ||
//复制到粘贴板 | ||
ClipboardManager cmb = (ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE); | ||
cmb.setPrimaryClip(ClipData.newPlainText(null, "[email protected]")); | ||
Toast.makeText(MainActivity.this, R.string.copy_success, Toast.LENGTH_LONG).show(); | ||
//打开支付宝 | ||
try { | ||
NavigationManager.openApp(MainActivity.this,alipay); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
if(AlipayZeroSdk.hasInstalledAlipayClient(MainActivity.this)){ | ||
AlipayZeroSdk.startAlipayClient(MainActivity.this, "aex07094cljuqa36ku7ml36"); | ||
}else{ | ||
Toast.makeText(MainActivity.this,getString(R.string.support_exception_for_alipay), Toast.LENGTH_SHORT).show(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FF000000" | ||
android:pathData="M6,18c0,0.55 0.45,1 1,1h1v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L11,19h2v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L16,19h1c0.55,0 1,-0.45 1,-1L18,8L6,8v10zM3.5,8C2.67,8 2,8.67 2,9.5v7c0,0.83 0.67,1.5 1.5,1.5S5,17.33 5,16.5v-7C5,8.67 4.33,8 3.5,8zM20.5,8c-0.83,0 -1.5,0.67 -1.5,1.5v7c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5v-7c0,-0.83 -0.67,-1.5 -1.5,-1.5zM15.53,2.16l1.3,-1.3c0.2,-0.2 0.2,-0.51 0,-0.71 -0.2,-0.2 -0.51,-0.2 -0.71,0l-1.48,1.48C13.85,1.23 12.95,1 12,1c-0.96,0 -1.86,0.23 -2.66,0.63L7.85,0.15c-0.2,-0.2 -0.51,-0.2 -0.71,0 -0.2,0.2 -0.2,0.51 0,0.71l1.31,1.31C6.97,3.26 6,5.01 6,7h12c0,-1.99 -0.97,-3.75 -2.47,-4.84zM10,5L9,5L9,4h1v1zM15,5h-1L14,4h1v1z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters