diff options
author | sjtufs <sjtu_fs@outlook.com> | 2013-09-01 05:57:40 +0800 |
---|---|---|
committer | sjtufs <sjtu_fs@outlook.com> | 2013-09-01 05:57:40 +0800 |
commit | 49d2e9d74fbf95e5b287dc8e9179e8d3d977a527 (patch) | |
tree | 57c672ed1bb809ed1bea8c852f61f464c5c1b74c /client/Piztor/src/com/macaroon/piztor/Settings.java | |
parent | 0410d0b9c6bb502f8467c3f2c62183e9a74e69fc (diff) |
stable version
Diffstat (limited to 'client/Piztor/src/com/macaroon/piztor/Settings.java')
-rw-r--r-- | client/Piztor/src/com/macaroon/piztor/Settings.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/Settings.java b/client/Piztor/src/com/macaroon/piztor/Settings.java index ad98662..8b4a948 100644 --- a/client/Piztor/src/com/macaroon/piztor/Settings.java +++ b/client/Piztor/src/com/macaroon/piztor/Settings.java @@ -147,7 +147,7 @@ public class Settings extends PiztorAct { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if (progress == 0) progress = 1; - refreshrate.setText(progress + "s each update"); + refreshrate.setText(progress + "s一次更新"); currentRate = progress; Log.d("seek", "cur " + progress); } @@ -237,6 +237,13 @@ public class Settings extends PiztorAct { } @Override + protected void onResume() { + super.onResume(); + if (app.isExiting || app.isLogout) + finish(); + } + + @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.setting, menu); |