mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Workaround Android Q bug
This commit is contained in:
@@ -531,6 +531,16 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldUpRecreateTask(Intent targetIntent) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q + 1) {
|
||||
ComponentName cn = targetIntent.getComponent();
|
||||
if (cn != null && BuildConfig.APPLICATION_ID.equals(cn.getPackageName()))
|
||||
return false;
|
||||
}
|
||||
return super.shouldUpRecreateTask(targetIntent);
|
||||
}
|
||||
|
||||
public interface IKeyPressedListener {
|
||||
boolean onKeyPressed(KeyEvent event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user