diff --git a/app/build.gradle b/app/build.gradle index 6399566..5c24c2f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "net.schueller.peertube" minSdkVersion 21 targetSdkVersion 28 - versionCode 1016 - versionName "1.0.16" + versionCode 1017 + versionName "1.0.17" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) @@ -26,18 +26,18 @@ android { implementation 'com.mikepenz:fontawesome-typeface:5.3.1.1@aar' // http client / REST - implementation 'com.squareup.okhttp3:okhttp:3.10.0' - implementation 'com.squareup.retrofit2:retrofit:2.3.0' + implementation 'com.squareup.okhttp3:okhttp:3.12.1' + implementation 'com.squareup.retrofit2:retrofit:2.5.0' // image downloading and caching library implementation 'com.squareup.picasso:picasso:2.5.2' // json decoder/encoder - implementation 'com.google.code.gson:gson:2.8.2' - implementation 'com.squareup.retrofit2:converter-gson:2.3.0' + implementation 'com.google.code.gson:gson:2.8.5' + implementation 'com.squareup.retrofit2:converter-gson:2.5.0' // Torrents and WebRTC - implementation 'com.github.TorrentStream:TorrentStream-Android:2.5.0' + implementation 'com.github.TorrentStream:TorrentStream-Android:2.6.1' // implementation "com.github.TorrentStream:TorrentStreamServer-Android:1.0.1" // implementation 'org.webrtc:google-webrtc:1.0.+' diff --git a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java index cdfe2f0..b8f0699 100644 --- a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java +++ b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java @@ -286,8 +286,8 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere TextView videoOwner = findViewById(R.id.videoOwner); TextView videoMeta = findViewById(R.id.videoMeta); ImageView avatarView = findViewById(R.id.avatar); - ImageButton moreButton = findViewById(R.id.moreButton); - ImageButton videoOptions = findViewById(R.id.exo_more); + TextView moreButton = findViewById(R.id.moreButton); + TextView videoOptions = findViewById(R.id.exo_more); Video video = response.body(); @@ -320,6 +320,9 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere ); videoDescription.setText(video.getDescription()); + moreButton.setText(R.string.video_more_icon); + new Iconics.IconicsBuilder().ctx(context).on(moreButton).build(); + moreButton.setOnClickListener(v -> { PopupMenu popup = new PopupMenu(context, v); popup.setOnMenuItemClickListener(menuItem -> { @@ -336,6 +339,9 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere }); // video player options + videoOptions.setText(R.string.video_more_icon); + new Iconics.IconicsBuilder().ctx(context).on(videoOptions).build(); + videoOptions.setOnClickListener(v -> { VideoOptionsFragment videoOptionsFragment = diff --git a/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java b/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java index 25f68e6..7bda3aa 100644 --- a/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java +++ b/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java @@ -22,6 +22,8 @@ import android.content.Intent; import androidx.annotation.NonNull; import androidx.appcompat.widget.PopupMenu; import androidx.recyclerview.widget.RecyclerView; + +import android.content.pm.ActivityInfo; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -29,6 +31,7 @@ import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; +import com.mikepenz.iconics.Iconics; import com.squareup.picasso.Picasso; import net.schueller.peertube.R; @@ -111,6 +114,9 @@ public class VideoAdapter extends RecyclerView.Adapter { PopupMenu popup = new PopupMenu(context, v); @@ -147,9 +153,8 @@ public class VideoAdapter extends RecyclerView.Adapter - + android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption" + /> - + android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption" + /> diff --git a/app/src/main/res/layout/video_playback_controls.xml b/app/src/main/res/layout/video_playback_controls.xml index 98ff4be..7dd5b36 100644 --- a/app/src/main/res/layout/video_playback_controls.xml +++ b/app/src/main/res/layout/video_playback_controls.xml @@ -10,28 +10,27 @@ android:orientation="vertical" tools:targetApi="28"> - - - + + + + + - \ No newline at end of file diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml new file mode 100644 index 0000000..6b184a3 --- /dev/null +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -0,0 +1,59 @@ + + + PeerTube + 登录 + 登录 + 登录 + 服务 + 设置 + 搜索 + 主页 + 趋势 + 订阅 + 帐号 + 更多 + 分享 + PeerTube 服务器 + 显示NSFW + 版本 + 邮箱 + 密码(可选) + 建议 + 搜索 + 正常 + 0.5倍速 + 1.5倍速 + 2倍速 + 黄色 + 红色 + 设置 + 邮箱格式错误 + 密码过短 + 密码错误 + 点亮按钮以显示成人内容 + 主题 + 重启应用该主题 + 重启进入夜间模式 + 夜间模式 + URL错误! + 琥珀色 + 粉红 + 紫色 + 暗绛红 + 靛青 + 蓝色 + 浅青 + 青色 + 鸭翅绿 + 无结果 + 许可 + 浅绿 + 正绿 + 青柠色 + 橙色 + 深橙色 + 褐色 + 灰色 + 蓝灰色 + 次观看 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 524f60d..f10fea5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -94,6 +94,7 @@ {faw-check} {faw-expand} {faw-compress} + {faw-ellipsis-v} Background Playback If enabled, continues to play video in background. Local