mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Activity manager context
This commit is contained in:
@@ -1667,7 +1667,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private void setOptions() {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
|
||||
ActivityManager am = (ActivityManager) getContext().getSystemService(Context.ACTIVITY_SERVICE);
|
||||
ActivityManager am = Helper.getSystemService(getContext(), ActivityManager.class);
|
||||
int class_mb = am.getMemoryClass();
|
||||
int class_large_mb = am.getLargeMemoryClass();
|
||||
ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();
|
||||
|
||||
Reference in New Issue
Block a user