Browse Source
Merge pull request #27 from Thodoris1999/develop
two issue fixes
pull/30/merge
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
6 deletions
-
app/src/main/java/gr/thmmy/mthmmy/activities/settings/SettingsActivity.java
-
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java
|
@ -32,13 +32,11 @@ public class SettingsActivity extends BaseActivity { |
|
|
createDrawer(); |
|
|
createDrawer(); |
|
|
drawer.setSelection(SETTINGS_ID); |
|
|
drawer.setSelection(SETTINGS_ID); |
|
|
|
|
|
|
|
|
if (savedInstanceState == null) { |
|
|
|
|
|
preferenceFragment = SettingsFragment.newInstance(sessionManager.isLoggedIn()); |
|
|
preferenceFragment = SettingsFragment.newInstance(sessionManager.isLoggedIn()); |
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); |
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); |
|
|
fragmentTransaction.add(R.id.pref_container, preferenceFragment); |
|
|
fragmentTransaction.add(R.id.pref_container, preferenceFragment); |
|
|
fragmentTransaction.commit(); |
|
|
fragmentTransaction.commit(); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onResume() { |
|
|
protected void onResume() { |
|
|
|
@ -845,6 +845,7 @@ public class TopicActivity extends BaseActivity { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onPreExecute() { |
|
|
protected void onPreExecute() { |
|
|
|
|
|
changePage(numberOfPages - 1); |
|
|
progressBar.setVisibility(ProgressBar.VISIBLE); |
|
|
progressBar.setVisibility(ProgressBar.VISIBLE); |
|
|
paginationEnabled(false); |
|
|
paginationEnabled(false); |
|
|
replyFAB.setEnabled(false); |
|
|
replyFAB.setEnabled(false); |
|
|