fix:toast时长
add:参数配置额外配置到其他文件
This commit is contained in:
parent
6dfaf02422
commit
3ef606b89e
@ -8,7 +8,7 @@ import java.util.List;
|
||||
*/
|
||||
public class PreviousPlayerList {
|
||||
private static final int INDEX=10;//记录十条
|
||||
private List<MusicData> list;
|
||||
private final List<MusicData> list;
|
||||
public PreviousPlayerList(){
|
||||
list=new ArrayList<>();
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ public class AppTools {
|
||||
AppData.handler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Toast.makeText(MyApplication.application, s, Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(MyApplication.application, s, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -10,5 +10,9 @@ public class ConfigTools {
|
||||
public static SharedPreferences getPreferences(){
|
||||
return MyApplication.application.getSharedPreferences("app_config", Context.MODE_PRIVATE);
|
||||
}
|
||||
public static SharedPreferences getConfigPreferences(){
|
||||
return MyApplication.application.getSharedPreferences("config", Context.MODE_PRIVATE);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user