From 609b1c84ce558f42db30a1246a72d35718c6d2ff Mon Sep 17 00:00:00 2001 From: lucashu <6125220@qq.com> Date: Thu, 30 May 2024 16:00:08 +0800 Subject: [PATCH] test1 --- src/main/java/com/hnucm/music/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hnucm/music/MainActivity.java b/src/main/java/com/hnucm/music/MainActivity.java index d3f92d1..4213dcf 100644 --- a/src/main/java/com/hnucm/music/MainActivity.java +++ b/src/main/java/com/hnucm/music/MainActivity.java @@ -55,7 +55,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(View v) { SharedPreferences sharedPreferences = getSharedPreferences("user",MODE_PRIVATE); SharedPreferences.Editor editor = sharedPreferences.edit(); -// editor.remove("name"); +// editor.clear(); //删除当前文件中所有的值 editor.commit();