Notification tweaks: Grouping and Quick Reply button (#587)
* Added notification grouping and Quick Reply button * Legal stuff * Coding style * Check whether account still exists when sending a quick reply * Add "compose" button * Polish translation * Improve strings * Code style * Cancel notification when user hits "compose" button * Notification counter * Make sure to open ComposeActivity for notification recipient account * Add ability to request account switch when starting an activity
This commit is contained in:
parent
aa48acdbec
commit
e8c79cce65
11 changed files with 369 additions and 61 deletions
|
|
@ -34,8 +34,13 @@ import com.keylesspalace.tusky.db.AccountEntity;
|
|||
import com.keylesspalace.tusky.db.AccountManager;
|
||||
import com.keylesspalace.tusky.util.ThemeUtils;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
public abstract class BaseActivity extends AppCompatActivity {
|
||||
|
||||
@Inject
|
||||
public AccountManager accountManager;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -48,6 +53,11 @@ public abstract class BaseActivity extends AppCompatActivity {
|
|||
String theme = preferences.getString("appTheme", ThemeUtils.APP_THEME_DEFAULT);
|
||||
ThemeUtils.setAppNightMode(theme, this);
|
||||
|
||||
long accountId = getIntent().getLongExtra("account", -1);
|
||||
if (accountId != -1) {
|
||||
accountManager.setActiveAccount(accountId);
|
||||
}
|
||||
|
||||
int style;
|
||||
switch (preferences.getString("statusTextSize", "medium")) {
|
||||
case "large":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue