This file contains hidden or 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
public class TaskManager { | |
/** | |
* Bring up launcher task to front | |
*/ | |
public void navToLauncherTask(@Nonnull Context appContext) { | |
ActivityManager activityManager = (ActivityManager) appContext.getSystemService(Context.ACTIVITY_SERVICE); | |
// iterate app tasks available and navigate to launcher task (browse task) | |
final List<ActivityManager.AppTask> appTasks = activityManager.getAppTasks(); | |
for (ActivityManager.AppTask task : appTasks) { |
This file contains hidden or 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
#define DEBUG | |
#ifdef DEBUG | |
#define DPRINTF(fmt, ...) \ | |
fprintf(stderr, "[%s][%s]%d: " fmt, __FILE__, __func__, __LINE__, ##__VA_ARGS__); | |
#endif |
This file contains hidden or 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
#!/bin/sh | |
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "origin_name" ] | |
then | |
GIT_COMMITTER_NAME="new_name"; | |
GIT_AUTHOR_NAME="new_name"; | |
GIT_COMMITTER_EMAIL="new_name_email"; | |
GIT_AUTHOR_EMAIL="new_name_email"; | |
git commit-tree "$@"; |