mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 05:10:52 +01: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