Some fixes
This commit is contained in:
parent
9c476037ef
commit
9f25405983
|
@ -189,7 +189,7 @@ public class PeertubeActivity extends AppCompatActivity {
|
|||
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||
String instance = Helper.getLiveInstance(PeertubeActivity.this);
|
||||
Account account = new AccountDAO(PeertubeActivity.this, db).getUniqAccount(userId, instance);
|
||||
Helper.loadGiF(PeertubeActivity.this, account.getAvatar().getPath(), my_pp);
|
||||
Helper.loadGiF(PeertubeActivity.this, account.getAvatar()!=null?account.getAvatar().getPath():null, my_pp);
|
||||
|
||||
|
||||
if (Helper.isTablet(PeertubeActivity.this)) {
|
||||
|
|
|
@ -241,7 +241,7 @@ public class ShowChannelActivity extends AppCompatActivity {
|
|||
|
||||
|
||||
manageNotes(channel);
|
||||
Helper.loadGiF(ShowChannelActivity.this, channel.getAvatar().getPath(), account_pp);
|
||||
Helper.loadGiF(ShowChannelActivity.this, channel.getAvatar()!=null?channel.getAvatar().getPath():null, account_pp);
|
||||
//Follow button
|
||||
String target = channel.getAcct();
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ public class DisplayVideosFragment extends Fragment implements AccountsHorizonta
|
|||
if (!flag_loading) {
|
||||
flag_loading = true;
|
||||
if (search_peertube == null) { //Not a Peertube search
|
||||
if( type != TimelineVM.TimelineType.USER_VIDEOS){
|
||||
if( type == TimelineVM.TimelineType.USER_VIDEOS){
|
||||
viewModelFeeds.getVideosInChannel(channelId, max_id).observe(DisplayVideosFragment.this.requireActivity(), apiResponse -> manageVIewVideos(apiResponse));
|
||||
}else {
|
||||
viewModelFeeds.getVideos(type, max_id).observe(DisplayVideosFragment.this.requireActivity(), apiResponse -> manageVIewVideos(apiResponse));
|
||||
|
@ -226,7 +226,7 @@ public class DisplayVideosFragment extends Fragment implements AccountsHorizonta
|
|||
if (!flag_loading) {
|
||||
flag_loading = true;
|
||||
if (search_peertube == null) { //Not a Peertube search
|
||||
if( type != TimelineVM.TimelineType.USER_VIDEOS){
|
||||
if( type == TimelineVM.TimelineType.USER_VIDEOS){
|
||||
viewModelFeeds.getVideosInChannel(channelId, max_id).observe(DisplayVideosFragment.this.requireActivity(), apiResponse -> manageVIewVideos(apiResponse));
|
||||
}else {
|
||||
viewModelFeeds.getVideos(type, max_id).observe(DisplayVideosFragment.this.requireActivity(), apiResponse -> manageVIewVideos(apiResponse));
|
||||
|
@ -401,7 +401,7 @@ public class DisplayVideosFragment extends Fragment implements AccountsHorizonta
|
|||
}
|
||||
if (search_peertube == null) { //Not a Peertube search
|
||||
|
||||
if( type != TimelineVM.TimelineType.USER_VIDEOS){
|
||||
if( type == TimelineVM.TimelineType.USER_VIDEOS){
|
||||
viewModelFeeds.getVideosInChannel(channelId, "0").observe(this.requireActivity(), this::manageVIewVideos);
|
||||
}else {
|
||||
viewModelFeeds.getVideos(type, "0").observe(this.requireActivity(), this::manageVIewVideos);
|
||||
|
|
Loading…
Reference in New Issue