mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-23 14:51:06 +00:00
Refresh screen after import
This commit is contained in:
parent
8bb0b9e256
commit
d441b29234
1 changed files with 8 additions and 3 deletions
|
@ -80,10 +80,14 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
|||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
getFragmentManager().beginTransaction().replace(android.R.id.content, new FragmentSettings()).commit();
|
||||
refreshScreen();
|
||||
getSupportActionBar().setTitle(R.string.menu_settings);
|
||||
}
|
||||
|
||||
private void refreshScreen() {
|
||||
getFragmentManager().beginTransaction().replace(android.R.id.content, new FragmentSettings()).commit();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
@ -342,9 +346,10 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
|||
|
||||
@Override
|
||||
protected void onPostExecute(Throwable ex) {
|
||||
if (ex == null)
|
||||
if (ex == null) {
|
||||
refreshScreen();
|
||||
Toast.makeText(ActivitySettings.this, R.string.msg_completed, Toast.LENGTH_LONG).show();
|
||||
else
|
||||
} else
|
||||
Toast.makeText(ActivitySettings.this, ex.toString(), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}.execute();
|
||||
|
|
Loading…
Reference in a new issue