We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268c028 commit 5fe44acCopy full SHA for 5fe44ac
src/com/dreamteam/app/ui/Main.java
@@ -281,6 +281,7 @@ public void onClick(View v)
281
282
private void switchMode()
283
{
284
+ isNight = AppContext.getPrefrences(this).getBoolean("day_night_mode", false);
285
Editor editor = AppContext.getPrefrences(this).edit();
286
//切回日间模式
287
if(isNight)
@@ -296,7 +297,7 @@ private void switchMode()
296
297
isNight = true;
298
bgLayout.setBackgroundResource(R.drawable.home_bg_night);
299
switchModeBtn.setImageResource(R.drawable.composer_moon);
- Toast.makeText(Main.this, R.string.switch2Day, Toast.LENGTH_SHORT).show();
300
+ Toast.makeText(Main.this, R.string.switch2Night, Toast.LENGTH_SHORT).show();
301
}
302
editor.putBoolean("day_night_mode", isNight);
303
editor.commit();
0 commit comments