Skip to content

Commit

Permalink
fix: add to queue from trending list view
Browse files Browse the repository at this point in the history
  • Loading branch information
zeseeit committed Mar 21, 2017
1 parent 27debb2 commit c82dbcc
Show file tree
Hide file tree
Showing 15 changed files with 370 additions and 26 deletions.
Binary file added app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "any.audio"
minSdkVersion 21
targetSdkVersion 25
versionCode 8
versionName "0.5"
versionCode 9
versionName "0.5.2"

}
aaptOptions {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="any.audio"
android:versionCode="7"
android:versionName="1.0">
android:versionCode="9"
android:versionName="0.5.2">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/any/audio/Activity/AnyAudioActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ private void transactFragment(int fragmentType, String extraa, String mode) {
setTitle(extraa);
ShowAllFragment showAllFragment = new ShowAllFragment();
showAllFragment.setExtraa(extraa);
showAllFragment.setActionListener(this);
manager
.beginTransaction()
.replace(R.id.fragmentPlaceHolder, showAllFragment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public int getItemCount() {
}

public static class ExploreItemCardViewHolder extends RecyclerView.ViewHolder {

TextView playBtn;
TextView downloadBtn;
TextView popUpBtn;
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/java/any/audio/helpers/TaskHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,9 @@ public void pauseHandler() {
* */

private void dispatch(final String taskID) {
//
// if (!utils.getTaskStatus(taskID).equals(Constants.DOWNLOAD.STATE_WAITING)) {
// return;
// }


String v_id = utils.getTaskVideoID(taskID);
String file_name = utils.getTaskTitle(taskID);

DownloadListener listener = new DownloadListener() {

@Override
Expand Down Expand Up @@ -177,18 +171,14 @@ public void onDownloadFinish() {
utils.setCurrentDownloadCount(0);
}
};

setCancelled(false);
DownloadThread thread = new DownloadThread(taskID, v_id, file_name, listener);
thread.start();

try {
//log(Thread.currentThread().getId() + " waiting thread to join");
isHandlerRunning = true;
thread.join();
isHandlerRunning = false;
// last-round check up for any residue task taken-in in beetween
//initiate();
L.m("TaskHandler", "Thread Joined");

} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
break;
}

return START_STICKY;
return START_NOT_STICKY;
}

private void sendNextAction() {
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/drawable/explore_card_drop_shadow_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
<item android:left="0dp" android:right="0dp" android:top="0dp" android:bottom="0dp">
<shape android:shape="rectangle">
<size android:width="10dp" android:height="10dp"/>
<solid android:color="#fefefe"/>
<corners android:radius="4dp"/>
</shape>
</item>

<item android:left="1dp" android:right="1dp" android:top="1dp" android:bottom="1dp">
<shape android:shape="rectangle">
<size android:width="10dp" android:height="10dp"/>
<solid android:color="#fdfdfd"/>
<solid android:color="#11fdfdfd"/>
<corners android:radius="4dp"/>
</shape>
</item>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/explore_item_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
android:paddingRight="4dp"
android:paddingLeft="12dp"
android:paddingBottom="4dp"
android:background="#fafafa"
android:layout_width="match_parent"
android:layout_height="wrap_content">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:textSize="20sp"
android:gravity="center"
android:textColor="@color/AnyAudioBlack"
android:text="Listen To Your Favorites Songs"
android:text="Listen To Your Favorites"
android:layout_width="match_parent"
android:layout_height="match_parent" />

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/light_explore_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
android:layout_alignParentEnd="true"
android:layout_marginBottom="4dp"
android:layout_marginEnd="4dp"
android:background="@color/White"
android:paddingBottom="1dp"
android:paddingLeft="2dp"
android:paddingRight="2dp"
Expand Down
Loading

0 comments on commit c82dbcc

Please sign in to comment.