mirror of
https://github.com/libretro/Play-.git
synced 2024-11-30 20:21:25 +00:00
Android: Add toast notification to settings action
This commit is contained in:
parent
6a26c99789
commit
887c03a066
@ -172,14 +172,17 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
|
||||
case RESCAN:
|
||||
preference.getEditor().putBoolean(RESCAN, true).apply();
|
||||
preferenceCategory.removePreference(preference);
|
||||
Toast.makeText(getActivity(), "Rescanning storage.", Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
case CLEAR_UNAVAILABLE:
|
||||
preference.getEditor().putBoolean(CLEAR_UNAVAILABLE, true).apply();
|
||||
preferenceCategory.removePreference(preference);
|
||||
Toast.makeText(getActivity(), "Removing unavailable games.", Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
case CLEAR_CACHE:
|
||||
clearCoverCache();
|
||||
preferenceCategory.removePreference(preference);
|
||||
Toast.makeText(getActivity(), "Clearing cover cache.", Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user