mirror of https://github.com/M66B/FairEmail.git
Made sort pro feature
This commit is contained in:
parent
ecbf90a978
commit
86afc0d1d5
|
@ -34,6 +34,7 @@ Pro features
|
|||
* Signatures
|
||||
* Account colors
|
||||
* Standard replies
|
||||
* Sort on time, unread or starred
|
||||
* Progressive search (first local, then server)
|
||||
* Preview sender/subject in new messages status bar notification
|
||||
|
||||
|
|
|
@ -564,15 +564,16 @@ public class FragmentMessages extends FragmentEx {
|
|||
return true;
|
||||
|
||||
case R.id.menu_sort_on_unread:
|
||||
prefs.edit().putString("sort", "unread").apply();
|
||||
item.setChecked(true);
|
||||
loadMessages();
|
||||
return true;
|
||||
|
||||
case R.id.menu_sort_on_starred:
|
||||
prefs.edit().putString("sort", "starred").apply();
|
||||
item.setChecked(true);
|
||||
loadMessages();
|
||||
if (prefs.getBoolean("pro", false)) {
|
||||
prefs.edit().putString("sort", item.getItemId() == R.id.menu_sort_on_unread ? "unread" : "starred").apply();
|
||||
item.setChecked(true);
|
||||
loadMessages();
|
||||
} else {
|
||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(R.id.content_frame, new FragmentPro()).addToBackStack("pro");
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
return true;
|
||||
|
||||
case R.id.menu_folders:
|
||||
|
|
Loading…
Reference in New Issue