Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/fga-gpp-mds/2018.1_Nexte int…
Browse files Browse the repository at this point in the history
…o feature/121-2
  • Loading branch information
gabrielalbino committed May 27, 2018
2 parents 1607611 + 1cc8132 commit 33a5a29
Show file tree
Hide file tree
Showing 54 changed files with 649 additions and 588 deletions.
6 changes: 3 additions & 3 deletions project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ android {
compileSdkVersion 26
defaultConfig {
applicationId "com.nexte.nexte"
minSdkVersion 22
minSdkVersion 18
targetSdkVersion 26
versionCode 5
versionName "0.5"
versionCode 6
versionName "0.6"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
146 changes: 0 additions & 146 deletions project/app/src/androidTest/java/com/nexte/nexte/CommentsViewTest.java

This file was deleted.

2 changes: 1 addition & 1 deletion project/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"/>
<activity
android:name=".CommentsScene.CommentsView"
android:name=".CommentsScene.CommentsFragment"
android:label="CommentsActivity"
android:screenOrientation="portrait" />
<activity
Expand Down
Binary file added project/app/src/main/check_comments-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import kotlinx.android.synthetic.main.columns_challenged.view.*
import android.app.AlertDialog
import android.support.v4.app.FragmentStatePagerAdapter
import android.support.v4.view.PagerAdapter
import android.support.v4.view.ViewPager
import android.widget.Button
import android.widget.TextView
import com.nexte.nexte.MatchScene.MatchFragment
Expand Down Expand Up @@ -87,8 +88,9 @@ class ChallengeView : AppCompatActivity(), ChallengeDisplayLogic {
super.onCreate(savedInstanceState)
this.setContentView(R.layout.activity_challenger)
this.setupChallengeScene()
viewpager.adapter = ViewPagerAdapter(supportFragmentManager, this)
tabs.setupWithViewPager(viewpager)
val viewPager: ViewPager = findViewById(R.id.challengerviewpager)
viewPager.adapter = ViewPagerAdapter(supportFragmentManager, this)
tabs.setupWithViewPager(viewPager)
}

/**
Expand Down Expand Up @@ -145,7 +147,8 @@ class ChallengeView : AppCompatActivity(), ChallengeDisplayLogic {
this.message?.text = viewModel.matchMessage
this.message?.visibility = View.VISIBLE
this.sendChallengeButton?.isEnabled = false
this.viewpager.adapter.notifyDataSetChanged()
val viewPager: ViewPager = findViewById(R.id.challengerviewpager)
viewPager.adapter.notifyDataSetChanged()
}


Expand Down
Loading

0 comments on commit 33a5a29

Please sign in to comment.