mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-20 15:41:52 +08:00
Minor interaction tweaks, prevent showing some Toasts
This commit is contained in:
@@ -1261,15 +1261,9 @@ if(history!=null)
|
||||
ma.loadlist(new File(ma.current), false);
|
||||
break;
|
||||
case R.id.view:
|
||||
if (aBoolean) {
|
||||
Toast.makeText(getActivity(), res.getString(R.string.setgridview), Toast.LENGTH_SHORT).show();
|
||||
sharedPreferences.edit().putBoolean("view", false).commit();
|
||||
|
||||
} else {
|
||||
Toast.makeText(getActivity(),res.getString(R.string.setlistview), Toast.LENGTH_SHORT).show();
|
||||
sharedPreferences.edit().putBoolean("view", true).commit();
|
||||
|
||||
}restartPC(getActivity());
|
||||
// Save the changes, but don't show a disruptive Toast:
|
||||
sharedPreferences.edit().putBoolean("view", aBoolean).commit();
|
||||
restartPC(getActivity());
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -562,6 +562,8 @@ public class Futils {
|
||||
m.Sp.edit().putString("dirontop", "" + i).commit();
|
||||
m.getSortModes();
|
||||
m.loadlist(new File(m.current), false);
|
||||
// dismiss the dialog since we don't want it open after selection:
|
||||
dialogInterface.dismiss();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user