Optimization

pull/207/head
M66B 3 years ago
parent bf3ec37815
commit 993c5c4ea3

@ -1035,8 +1035,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Log.i("Manual GC"); Log.i("Manual GC");
Runtime.getRuntime().runFinalization(); Runtime rt = Runtime.getRuntime();
Runtime.getRuntime().gc(); rt.runFinalization();
rt.gc();
view.postDelayed(new Runnable() { view.postDelayed(new Runnable() {
@Override @Override
public void run() { public void run() {

Loading…
Cancel
Save