Skip to content

Commit

Permalink
Update version and fix one last layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Dec 6, 2017
1 parent 47ec416 commit 0c40a2a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "be.ugent.zeus.hydra"
minSdkVersion 16
targetSdkVersion 26
versionCode 263
versionName "2.6.1"
versionCode 270
versionName "2.7.0"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
// Change item while the activity is running.
if (intent.hasExtra(ARG_TAB)) {
setIntent(intent);
int start = intent.getIntExtra(ARG_TAB, R.id.drawer_feed);
if (intent.getBooleanExtra(ARG_NEW_DEFAULT, true)) {
this.initialFragmentId = start;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@ private void receiveData(@NonNull List<RestoMenu> data) {
//Set the tab to this day!
if (menu.getDate().isEqual(startDate)) {
Log.d(TAG, "receiveData: setting item to " + (i + 1));
viewPager.setCurrentItem(i, true);
TabLayout.Tab tab = tabLayout.getTabAt(i);
if (tab != null) {
tab.select();
} else {
viewPager.setCurrentItem(i);
}
break;
}
}
Expand Down Expand Up @@ -320,6 +325,12 @@ public void onRemovalScheduled() {
hideExternalViews();
}

@Override
public void onDestroy() {
super.onDestroy();
hideExternalViews();
}

private static class RestoWrapper {

private final SelectableMetaRequest.RestoChoice resto;
Expand Down

0 comments on commit 0c40a2a

Please sign in to comment.