Skip to content

Commit

Permalink
Update apk download link
Browse files Browse the repository at this point in the history
  • Loading branch information
EckCiting committed Dec 16, 2021
1 parent aa23a7d commit 13675b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public class Config {
public static final int ENGLISH = 0;
public static final int CHINESE = 1;
public static final Locale[] LOCALES = {Locale.ENGLISH,Locale.CHINESE};

public static final String DOWNLOAD_LINK = "https://github.com/NaiveSearch/NaiveSearch/releases/download/release/Simple-Search.apk";
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public boolean onNavigationItemSelected(MenuItem item) {//当导时航栏菜单

} else if (id == R.id.nav_share) { //share the application with friends
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clipData = ClipData.newPlainText("simple text", "https://github.com/NaiveSearch/NaiveSearch/tree/master/app/src/main");
ClipData clipData = ClipData.newPlainText("simple text", Config.DOWNLOAD_LINK);
sendNotification("Sharing to friends", "App link has been pasted to clipboard", 2, 3);
clipboardManager.setPrimaryClip(clipData);
}
Expand Down

0 comments on commit 13675b9

Please sign in to comment.