feat(notification): add actions

This commit is contained in:
FineFindus
2023-02-25 23:19:41 +01:00
parent 94ed0c3f49
commit f404895b5c
3 changed files with 53 additions and 21 deletions

View File

@@ -107,26 +107,6 @@ public class MainActivity extends FragmentStackActivity{
}
}else if(intent.getBooleanExtra("compose", false)){
showCompose();
}else if(intent.getStringExtra("notificationAction") != null) {
switch (NotificationAction.values()[intent.getIntExtra("notificationAction", 0)]) {
case FAVORITE -> {
String accountID=intent.getStringExtra("accountID");
new SetStatusFavorited(intent.getStringExtra("status"), true)
.setCallback(new Callback<>(){
@Override
public void onSuccess(Status result){
}
@Override
public void onError(ErrorResponse error){
}
})
.exec(accountID);
}
case REBLOG -> {
}
}
}/*else if(intent.hasExtra(PackageInstaller.EXTRA_STATUS) && GithubSelfUpdater.needSelfUpdating()){
GithubSelfUpdater.getInstance().handleIntentFromInstaller(intent, this);
}*/