mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Fixed back to unselect
This commit is contained in:
@@ -170,10 +170,16 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (backHandled())
|
||||
return;
|
||||
super.onBackPressed();
|
||||
}
|
||||
|
||||
protected boolean backHandled() {
|
||||
for (IBackPressedListener listener : backPressedListeners)
|
||||
if (listener.onBackPressed())
|
||||
return;
|
||||
super.onBackPressed();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public interface IBackPressedListener {
|
||||
|
||||
Reference in New Issue
Block a user