Skip to content

Commit

Permalink
*Search Fixed (esteem search now implemented to replace AskSteem)
Browse files Browse the repository at this point in the history
*General Changes and improvements
  • Loading branch information
powerpoint45 committed Jan 31, 2019
1 parent 27979bc commit 99f0753
Show file tree
Hide file tree
Showing 18 changed files with 334 additions and 102 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
01-31-19
*Search Fixed (esteem search now implemented to replace AskSteem)
*General Changes and improvements
11-16-18
*Ability to upload videos (Early Development)
*Added Help Button to Login
Expand Down
8 changes: 4 additions & 4 deletions app/AutoUpdate.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<AppUpdater>
<update>
<latestVersion>2.4</latestVersion>
<latestVersionCode>16</latestVersionCode>
<latestVersion>2.6</latestVersion>
<latestVersionCode>18</latestVersionCode>
<url>https://github.com/powerpoint45/dtube-mobile-unofficial/releases</url>
<releaseNotes>
*Ability to upload videos (Early Development)
*Added Help Button to Login
*Search Fixed (esteem search now implemented to replace AskSteem)
*General Changes and improvements
</releaseNotes>
</update>
</AppUpdater>
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion '28.0.2'

useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.powerpoint45.dtube"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 27
versionCode 17
versionName "2.5"
versionCode 18
versionName "2.6"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":17,"versionName":"2.5","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":18,"versionName":"2.6","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
23 changes: 20 additions & 3 deletions app/src/main/java/com/powerpoint45/dtube/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
import com.github.javiersantos.appupdater.enums.AppUpdaterError;
import com.github.javiersantos.appupdater.enums.UpdateFrom;
import com.github.javiersantos.appupdater.objects.Update;
import com.hapramp.steemconnect4j.SteemConnect;
import com.hapramp.steemconnect4j.SteemConnectException;
import com.makeramen.roundedimageview.RoundedTransformationBuilder;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Transformation;
Expand Down Expand Up @@ -107,6 +105,23 @@ protected void onCreate(Bundle savedInstanceState) {
UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE);
assert uiModeManager != null;



//For proper functioning of this app, Android System Webview must be installed
if (!Tools.isPackageInstalled("com.google.android.webview",getPackageManager())){

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.webview_alert)
.setPositiveButton(R.string.install, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.google.android.webview")));
}
})
.setNegativeButton(android.R.string.cancel, null);
// Create the AlertDialog object and return it
builder.create().show();
}

//Customize layout if in TV Mode
if (uiModeManager.getCurrentModeType()== Configuration.UI_MODE_TYPE_TELEVISION) {
setContentView(R.layout.activity_main_tv);
Expand Down Expand Up @@ -636,7 +651,9 @@ public int compare(Video a, Video b)
return Long.compare(b.getDate(), a.getDate());
}
}
Collections.sort(videos, new SortVideos());
synchronized (videos) {
Collections.sort(videos, new SortVideos());
}
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand Down
29 changes: 29 additions & 0 deletions app/src/main/java/com/powerpoint45/dtube/ProgressBarAnimation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.powerpoint45.dtube;

import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import android.widget.ProgressBar;

public class ProgressBarAnimation extends Animation {
private ProgressBar progressBar;
private float from;
private float to;

public ProgressBarAnimation(ProgressBar progressBar, float from, float to) {
super();
this.progressBar = progressBar;
this.from = from;
this.to = to;
}

@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
float value = from + (to - from) * interpolatedTime;
progressBar.setProgress((int) value);
if ((int)value==100)
progressBar.setVisibility(View.GONE);
}

}
Loading

0 comments on commit 99f0753

Please sign in to comment.