Warning fixed and upgraded app version
This commit is contained in:
parent
904319674d
commit
390b1a7add
|
@ -11,8 +11,8 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
//noinspection OldTargetApi
|
//noinspection OldTargetApi
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 5
|
versionCode 6
|
||||||
versionName "0.4"
|
versionName "0.5"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -12,7 +12,6 @@ object ManagerSingleton {
|
||||||
var videos_count: Int = 0
|
var videos_count: Int = 0
|
||||||
|
|
||||||
fun Toast(text: String?, context: Context) {
|
fun Toast(text: String?, context: Context) {
|
||||||
if(context == null) { return }
|
|
||||||
android.widget.Toast.makeText(context, text, android.widget.Toast.LENGTH_SHORT).show()
|
android.widget.Toast.makeText(context, text, android.widget.Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -285,12 +285,12 @@ class ReproductorActivity : AppCompatActivity() {
|
||||||
// Pass null as the parent view because its going in the dialog layout
|
// Pass null as the parent view because its going in the dialog layout
|
||||||
builder.setView(dialog)
|
builder.setView(dialog)
|
||||||
// Add action buttons
|
// Add action buttons
|
||||||
.setPositiveButton(R.string.reportBtn) { dialog, id ->
|
.setPositiveButton(R.string.reportBtn) { _, _ ->
|
||||||
val reason = inputReason.text.toString()
|
val reason = inputReason.text.toString()
|
||||||
reportVideo(reason)
|
reportVideo(reason)
|
||||||
}
|
}
|
||||||
.setNegativeButton("Cancel") { dialog, id ->
|
.setNegativeButton("Cancel") { dialog, _ ->
|
||||||
dialog.cancel()
|
dialog.run { cancel() }
|
||||||
}
|
}
|
||||||
val alertDialog = builder.create()
|
val alertDialog = builder.create()
|
||||||
alertDialog.show()
|
alertDialog.show()
|
||||||
|
|
|
@ -178,7 +178,7 @@ class Videos: Client() {
|
||||||
fun channelVideos(account: String, start: Int): ArrayList<VideoModel> {
|
fun channelVideos(account: String, start: Int): ArrayList<VideoModel> {
|
||||||
val count = ManagerSingleton.videos_count
|
val count = ManagerSingleton.videos_count
|
||||||
val params = "start=$start&count=$count"
|
val params = "start=$start&count=$count"
|
||||||
val con = this._newCon("video-channels/$account/videos","GET")
|
val con = this._newCon("video-channels/$account/videos?$params","GET")
|
||||||
var videos = arrayListOf<VideoModel>()
|
var videos = arrayListOf<VideoModel>()
|
||||||
try {
|
try {
|
||||||
if (con.responseCode == 200) {
|
if (con.responseCode == 200) {
|
||||||
|
|
Loading…
Reference in New Issue