Prepare release 1.0.3
This commit is contained in:
parent
f139d02c2c
commit
b146ca064f
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId "app.fedilab.fedilabtube"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 3
|
||||
versionName "1.0.2"
|
||||
versionCode 4
|
||||
versionName "1.0.3"
|
||||
multiDexEnabled true
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -32,12 +32,10 @@ import android.widget.TextView;
|
|||
import androidx.appcompat.widget.PopupMenu;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import app.fedilab.fedilabtube.PeertubeEditUploadActivity;
|
||||
import app.fedilab.fedilabtube.PlaylistsActivity;
|
||||
import app.fedilab.fedilabtube.R;
|
||||
import app.fedilab.fedilabtube.asynctasks.ManagePlaylistsAsyncTask;
|
||||
|
@ -96,11 +94,16 @@ public class PlaylistAdapter extends BaseAdapter implements OnPlaylistActionInte
|
|||
}
|
||||
|
||||
Glide.with(context)
|
||||
.load("https://"+playlist.getOwnerAccount().getHost()+playlist.getThumbnailPath())
|
||||
.load("https://" + playlist.getOwnerAccount().getHost() + playlist.getThumbnailPath())
|
||||
.into(holder.preview_playlist);
|
||||
|
||||
holder.preview_title.setText(playlist.getDisplayName());
|
||||
holder.preview_description.setText(playlist.getDescription());
|
||||
if (playlist.getDescription() != null && playlist.getDescription().trim().compareTo("null") != 0 && playlist.getDescription().length() > 0) {
|
||||
holder.preview_description.setText(playlist.getDescription());
|
||||
holder.preview_description.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
holder.preview_description.setVisibility(View.GONE);
|
||||
}
|
||||
Map.Entry<Integer, String> privacyM = playlist.getPrivacy().entrySet().iterator().next();
|
||||
holder.preview_visibility.setText(privacyM.getValue());
|
||||
|
||||
|
@ -135,9 +138,9 @@ public class PlaylistAdapter extends BaseAdapter implements OnPlaylistActionInte
|
|||
.setNegativeButton(R.string.no, (dialog, which) -> dialog.dismiss())
|
||||
.show();
|
||||
break;
|
||||
case R.id.action_edit:
|
||||
/*case R.id.action_edit:
|
||||
|
||||
break;
|
||||
break;*/
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/>
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z" />
|
||||
</vector>
|
||||
|
|
|
@ -23,34 +23,35 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:divider="?android:dividerHorizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="5dp"
|
||||
android:showDividers="end">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="5dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/preview_playlist"
|
||||
android:layout_width="120dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_gravity="center"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:contentDescription="@string/preview"
|
||||
android:scaleType="centerInside"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/preview_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:contentDescription="@string/preview" />
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/preview_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/playlist_more"
|
||||
|
||||
app:layout_constraintStart_toEndOf="@+id/preview_playlist"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/preview_visibility"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -59,28 +60,25 @@
|
|||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/preview_description"
|
||||
app:layout_constraintStart_toEndOf="@+id/preview_playlist"
|
||||
app:layout_constraintStart_toStartOf="@+id/preview_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/preview_title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/preview_description"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/playlist_more"
|
||||
app:layout_constraintStart_toEndOf="@+id/preview_playlist"
|
||||
app:layout_constraintTop_toBottomOf="@+id/preview_title" />
|
||||
app:layout_constraintStart_toStartOf="@+id/preview_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/preview_visibility" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/playlist_more"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:contentDescription="@string/display_more"
|
||||
android:src="@drawable/ic_baseline_more_vert_24"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
|
|
@ -6,9 +6,11 @@
|
|||
android:icon="@drawable/ic_baseline_delete_24"
|
||||
android:title="@string/delete"
|
||||
app:showAsAction="ifRoom" />
|
||||
<!--
|
||||
<item
|
||||
android:id="@+id/action_edit"
|
||||
android:icon="@drawable/ic_baseline_edit_24"
|
||||
android:title="@string/edit"
|
||||
app:showAsAction="ifRoom" />
|
||||
-->
|
||||
</menu>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
Nouveautés :
|
||||
- Modifier la vignette des vidéos
|
||||
- Mettre des comptes en sourdine
|
||||
- Refonte de la présentation des chaînes et des listes de lecture
|
||||
- Refonte de l’affichage du compte
|
||||
- Historique des vidéos regardées
|
||||
- Possibilité de changer le mode pour les vidéos
|
||||
- Possibilité de créer/supprimer une chaîne.
|
||||
- Abonnements affichés dans des vignettes avec possibilité de filtrer les vidéos.
|
Loading…
Reference in New Issue