2020-09-25 18:58:04 +02:00
|
|
|
package app.fedilab.fedilabtube.fragment;
|
|
|
|
/* Copyright 2020 Thomas Schneider
|
|
|
|
*
|
|
|
|
* This file is a part of TubeLab
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
|
|
|
* see <http://www.gnu.org/licenses>. */
|
|
|
|
|
2022-05-05 08:53:25 +02:00
|
|
|
import static app.fedilab.fedilabtube.activities.PeertubeUploadActivity.MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE;
|
2022-05-04 09:43:54 +02:00
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
import android.Manifest;
|
2020-09-25 18:58:04 +02:00
|
|
|
import android.app.Activity;
|
|
|
|
import android.content.Context;
|
2020-11-21 17:17:34 +01:00
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.pm.PackageManager;
|
|
|
|
import android.net.Uri;
|
2020-09-25 18:58:04 +02:00
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Handler;
|
|
|
|
import android.os.Looper;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
import android.view.WindowManager;
|
|
|
|
import android.view.inputmethod.InputMethodManager;
|
|
|
|
import android.widget.Button;
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
2020-11-21 17:17:34 +01:00
|
|
|
import androidx.core.app.ActivityCompat;
|
|
|
|
import androidx.core.content.ContextCompat;
|
2020-09-25 18:58:04 +02:00
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.lifecycle.ViewModelProvider;
|
|
|
|
import androidx.recyclerview.widget.DividerItemDecoration;
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
import com.bumptech.glide.Glide;
|
|
|
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
|
|
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
|
|
|
import com.bumptech.glide.request.RequestOptions;
|
2020-09-25 18:58:04 +02:00
|
|
|
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import app.fedilab.fedilabtube.R;
|
|
|
|
import app.fedilab.fedilabtube.client.APIResponse;
|
|
|
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
|
|
|
import app.fedilab.fedilabtube.client.data.ChannelData;
|
|
|
|
import app.fedilab.fedilabtube.client.entities.ChannelParams;
|
|
|
|
import app.fedilab.fedilabtube.drawer.ChannelListAdapter;
|
|
|
|
import app.fedilab.fedilabtube.helper.Helper;
|
2020-12-01 18:35:54 +01:00
|
|
|
import app.fedilab.fedilabtube.helper.HelperInstance;
|
2020-09-25 18:58:04 +02:00
|
|
|
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
2020-11-27 14:06:42 +01:00
|
|
|
import app.fedilab.fedilabtube.viewmodel.SearchVM;
|
2020-09-25 18:58:04 +02:00
|
|
|
import es.dmoral.toasty.Toasty;
|
|
|
|
|
|
|
|
|
|
|
|
public class DisplayChannelsFragment extends Fragment implements ChannelListAdapter.AllChannelRemoved, ChannelListAdapter.EditAlertDialog {
|
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
private static final int PICK_AVATAR = 467;
|
2020-12-18 14:31:36 +01:00
|
|
|
private Context context;
|
2020-09-25 18:58:04 +02:00
|
|
|
private ChannelListAdapter channelListAdapter;
|
|
|
|
private List<ChannelData.Channel> channels;
|
|
|
|
private String name;
|
|
|
|
private View rootView;
|
2020-11-21 17:17:34 +01:00
|
|
|
private FloatingActionButton action_button;
|
|
|
|
private FragmentRecyclerviewBinding binding;
|
|
|
|
private AddChannelBinding bindingDialog;
|
|
|
|
private Uri inputData;
|
2020-11-27 14:06:42 +01:00
|
|
|
private String search_peertube;
|
|
|
|
private String max_id;
|
2020-09-25 18:58:04 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
|
|
|
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
binding = FragmentRecyclerviewBinding.inflate(LayoutInflater.from(context));
|
|
|
|
rootView = binding.getRoot();
|
2020-09-25 18:58:04 +02:00
|
|
|
context = getContext();
|
|
|
|
Bundle bundle = this.getArguments();
|
|
|
|
channels = new ArrayList<>();
|
2020-11-27 14:06:42 +01:00
|
|
|
max_id = "0";
|
2020-09-25 18:58:04 +02:00
|
|
|
if (bundle != null) {
|
|
|
|
name = bundle.getString("name", null);
|
2020-11-27 14:06:42 +01:00
|
|
|
search_peertube = bundle.getString("search_peertube", null);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (getActivity() != null) {
|
|
|
|
action_button = getActivity().findViewById(R.id.action_button);
|
2020-10-17 18:50:20 +02:00
|
|
|
if (action_button != null) {
|
2020-10-16 17:03:07 +02:00
|
|
|
action_button.setVisibility(View.VISIBLE);
|
|
|
|
action_button.setOnClickListener(view -> manageAlert(null));
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.lvElements.addItemDecoration(new DividerItemDecoration(context, DividerItemDecoration.VERTICAL));
|
2020-11-27 14:29:29 +01:00
|
|
|
channelListAdapter = new ChannelListAdapter(this.channels);
|
2020-09-25 18:58:04 +02:00
|
|
|
channelListAdapter.allChannelRemoved = this;
|
|
|
|
channelListAdapter.editAlertDialog = this;
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.lvElements.setAdapter(channelListAdapter);
|
2020-09-25 18:58:04 +02:00
|
|
|
|
|
|
|
final LinearLayoutManager mLayoutManager;
|
|
|
|
mLayoutManager = new LinearLayoutManager(context);
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.lvElements.setLayoutManager(mLayoutManager);
|
2020-09-25 18:58:04 +02:00
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.swipeContainer.setOnRefreshListener(this::pullToRefresh);
|
2020-11-27 14:06:42 +01:00
|
|
|
|
|
|
|
loadChannels(max_id);
|
2020-09-25 18:58:04 +02:00
|
|
|
return rootView;
|
|
|
|
}
|
|
|
|
|
2020-11-27 14:06:42 +01:00
|
|
|
private void loadChannels(String max_id) {
|
|
|
|
if (search_peertube == null) {
|
|
|
|
ChannelsVM viewModel = new ViewModelProvider(this).get(ChannelsVM.class);
|
|
|
|
if (name != null) {
|
|
|
|
viewModel.get(RetrofitPeertubeAPI.DataType.CHANNELS_FOR_ACCOUNT, name).observe(DisplayChannelsFragment.this.requireActivity(), this::manageViewChannels);
|
|
|
|
} else {
|
|
|
|
viewModel.get(RetrofitPeertubeAPI.DataType.MY_CHANNELS, null).observe(DisplayChannelsFragment.this.requireActivity(), this::manageViewChannels);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
SearchVM viewModelSearch = new ViewModelProvider(this).get(SearchVM.class);
|
|
|
|
viewModelSearch.getChannels(max_id, search_peertube).observe(this.requireActivity(), this::manageViewChannels);
|
|
|
|
}
|
|
|
|
}
|
2020-11-21 17:17:34 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
super.onActivityResult(requestCode, resultCode, data);
|
|
|
|
if (requestCode == PICK_AVATAR && resultCode == Activity.RESULT_OK) {
|
|
|
|
if (data == null || data.getData() == null) {
|
|
|
|
Toasty.error(context, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
inputData = data.getData();
|
|
|
|
Glide.with(context)
|
|
|
|
.load(inputData)
|
|
|
|
.thumbnail(0.1f)
|
|
|
|
.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)))
|
|
|
|
.into(bindingDialog.profilePicture);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-25 18:58:04 +02:00
|
|
|
@Override
|
|
|
|
public void onResume() {
|
|
|
|
super.onResume();
|
2020-09-29 17:42:15 +02:00
|
|
|
if (getActivity() != null && getActivity() != null) {
|
|
|
|
View action_button = getActivity().findViewById(R.id.action_button);
|
|
|
|
if (action_button != null) {
|
|
|
|
action_button.setVisibility(View.VISIBLE);
|
|
|
|
}
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onDestroyView() {
|
|
|
|
super.onDestroyView();
|
|
|
|
rootView = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onCreate(Bundle saveInstance) {
|
|
|
|
super.onCreate(saveInstance);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onAttach(@NonNull Context context) {
|
|
|
|
super.onAttach(context);
|
|
|
|
this.context = context;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onDestroy() {
|
|
|
|
super.onDestroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void scrollToTop() {
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.lvElements.setAdapter(channelListAdapter);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private void manageViewChannels(APIResponse apiResponse) {
|
2020-11-27 14:06:42 +01:00
|
|
|
binding.loader.setVisibility(View.GONE);
|
|
|
|
binding.loadingNext.setVisibility(View.GONE);
|
2020-09-25 18:58:04 +02:00
|
|
|
if (apiResponse.getError() != null) {
|
|
|
|
Toasty.error(context, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.swipeContainer.setRefreshing(false);
|
2020-09-25 18:58:04 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
List<ChannelData.Channel> channels = apiResponse.getChannels();
|
2020-11-27 14:06:42 +01:00
|
|
|
|
2020-11-11 11:13:29 +01:00
|
|
|
if ((channels == null || channels.size() == 0))
|
2020-11-27 14:06:42 +01:00
|
|
|
binding.noAction.setVisibility(View.VISIBLE);
|
2020-09-25 18:58:04 +02:00
|
|
|
else
|
2020-11-27 14:06:42 +01:00
|
|
|
binding.noAction.setVisibility(View.GONE);
|
|
|
|
max_id = String.valueOf(Integer.parseInt(max_id) + 20);
|
2020-09-25 18:58:04 +02:00
|
|
|
if (channels != null && channels.size() > 0) {
|
|
|
|
int currentPosition = this.channels.size();
|
|
|
|
this.channels.addAll(channels);
|
2020-11-11 11:13:29 +01:00
|
|
|
if (currentPosition == 0) {
|
2020-11-27 14:29:29 +01:00
|
|
|
channelListAdapter = new ChannelListAdapter(this.channels);
|
2020-11-11 11:13:29 +01:00
|
|
|
channelListAdapter.allChannelRemoved = DisplayChannelsFragment.this;
|
|
|
|
channelListAdapter.editAlertDialog = DisplayChannelsFragment.this;
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.lvElements.setAdapter(channelListAdapter);
|
2020-11-11 11:13:29 +01:00
|
|
|
} else {
|
|
|
|
channelListAdapter.notifyItemRangeChanged(currentPosition, channels.size());
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.swipeContainer.setRefreshing(false);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void pullToRefresh() {
|
|
|
|
channels = new ArrayList<>();
|
2020-11-21 17:17:34 +01:00
|
|
|
binding.swipeContainer.setRefreshing(true);
|
2020-11-27 14:06:42 +01:00
|
|
|
loadChannels("0");
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onAllChannelRemoved() {
|
2020-11-27 14:06:42 +01:00
|
|
|
binding.noAction.setVisibility(View.VISIBLE);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void manageAlert(ChannelParams oldChannelValues) {
|
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
|
2020-09-25 18:58:04 +02:00
|
|
|
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context);
|
2020-11-21 17:17:34 +01:00
|
|
|
bindingDialog = AddChannelBinding.inflate(LayoutInflater.from(context), null, false);
|
|
|
|
dialogBuilder.setView(bindingDialog.getRoot());
|
|
|
|
|
2020-09-25 18:58:04 +02:00
|
|
|
if (oldChannelValues != null) {
|
2020-11-21 17:17:34 +01:00
|
|
|
bindingDialog.displayName.setText(oldChannelValues.getDisplayName());
|
|
|
|
bindingDialog.name.setText(oldChannelValues.getName());
|
|
|
|
bindingDialog.description.setText(oldChannelValues.getDescription());
|
|
|
|
bindingDialog.name.setEnabled(false);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
dialogBuilder.setPositiveButton(R.string.validate, null);
|
|
|
|
dialogBuilder.setNegativeButton(R.string.cancel, (dialog, id) -> dialog.dismiss());
|
|
|
|
|
|
|
|
AlertDialog alertDialog = dialogBuilder.create();
|
2020-11-21 17:17:34 +01:00
|
|
|
int position;
|
|
|
|
if (oldChannelValues == null) {
|
|
|
|
position = -1;
|
|
|
|
} else {
|
|
|
|
position = 0;
|
|
|
|
for (ChannelData.Channel channel : channels) {
|
|
|
|
if (channel.getName().compareTo(oldChannelValues.getName()) == 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
position++;
|
|
|
|
}
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
|
2020-11-21 17:17:34 +01:00
|
|
|
bindingDialog.selectFile.setOnClickListener(v -> {
|
|
|
|
if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
|
|
|
PackageManager.PERMISSION_GRANTED) {
|
|
|
|
ActivityCompat.requestPermissions((Activity) context,
|
|
|
|
new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},
|
|
|
|
MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
|
|
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
|
intent.setType("*/*");
|
|
|
|
String[] mimetypes = {"image/*"};
|
|
|
|
intent.putExtra(Intent.EXTRA_MIME_TYPES, mimetypes);
|
|
|
|
startActivityForResult(intent, PICK_AVATAR);
|
|
|
|
});
|
|
|
|
if (position >= 0) {
|
|
|
|
Helper.loadGiF(context, channels.get(position).getAvatar() != null ? channels.get(position).getAvatar().getPath() : null, bindingDialog.profilePicture);
|
|
|
|
} else {
|
|
|
|
Glide.with(context)
|
|
|
|
.load(R.drawable.missing_peertube)
|
|
|
|
.thumbnail(0.1f)
|
|
|
|
.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)))
|
|
|
|
.into(bindingDialog.profilePicture);
|
|
|
|
}
|
|
|
|
int finalPosition = position;
|
2020-09-25 18:58:04 +02:00
|
|
|
alertDialog.setOnShowListener(dialogInterface -> {
|
|
|
|
|
|
|
|
Button button = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
|
|
|
|
button.setOnClickListener(view -> {
|
2020-11-21 17:17:34 +01:00
|
|
|
if (bindingDialog.displayName.getText() != null && bindingDialog.displayName.getText().toString().trim().length() > 0 && bindingDialog.name.getText() != null && bindingDialog.name.getText().toString().trim().length() > 0) {
|
2020-09-25 18:58:04 +02:00
|
|
|
|
|
|
|
ChannelParams channelCreation = new ChannelParams();
|
2020-11-21 17:17:34 +01:00
|
|
|
channelCreation.setDisplayName(bindingDialog.displayName.getText().toString().trim());
|
|
|
|
channelCreation.setName(bindingDialog.name.getText().toString().trim());
|
|
|
|
if (bindingDialog.description.getText() != null && bindingDialog.description.getText().toString().trim().length() > 0) {
|
|
|
|
channelCreation.setDescription(bindingDialog.description.getText().toString().trim());
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
new Thread(() -> {
|
2020-09-29 17:42:15 +02:00
|
|
|
APIResponse apiResponse;
|
2020-09-25 18:58:04 +02:00
|
|
|
if (oldChannelValues == null) {
|
2020-11-21 17:17:34 +01:00
|
|
|
apiResponse = new RetrofitPeertubeAPI(context).createOrUpdateChannel(ChannelsVM.action.CREATE_CHANNEL, null, channelCreation, inputData);
|
2020-09-25 18:58:04 +02:00
|
|
|
} else {
|
2020-12-01 18:35:54 +01:00
|
|
|
apiResponse = new RetrofitPeertubeAPI(context).createOrUpdateChannel(ChannelsVM.action.UPDATE_CHANNEL, channelCreation.getName() + "@" + HelperInstance.getLiveInstance(context), channelCreation, inputData);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
|
|
|
Handler mainHandler = new Handler(Looper.getMainLooper());
|
|
|
|
Runnable myRunnable = () -> {
|
|
|
|
|
|
|
|
if (oldChannelValues == null) {
|
|
|
|
ChannelData.Channel channel = new ChannelData.Channel();
|
2020-09-29 17:42:15 +02:00
|
|
|
channel.setId(apiResponse.getActionReturn());
|
2020-09-25 18:58:04 +02:00
|
|
|
channel.setName(channelCreation.getName());
|
|
|
|
channel.setDisplayName(channelCreation.getDisplayName());
|
|
|
|
channel.setDescription(channelCreation.getDescription());
|
|
|
|
channels.add(0, channel);
|
|
|
|
channelListAdapter.notifyItemInserted(0);
|
|
|
|
} else {
|
2020-11-21 17:17:34 +01:00
|
|
|
channels.get(finalPosition).setName(channelCreation.getName());
|
|
|
|
channels.get(finalPosition).setDisplayName(channelCreation.getDisplayName());
|
|
|
|
channels.get(finalPosition).setDescription(channelCreation.getDescription());
|
|
|
|
channelListAdapter.notifyItemChanged(finalPosition);
|
2020-09-25 18:58:04 +02:00
|
|
|
}
|
2020-10-17 18:50:20 +02:00
|
|
|
if (action_button != null) {
|
2020-10-16 17:03:07 +02:00
|
|
|
action_button.setEnabled(true);
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
};
|
|
|
|
mainHandler.post(myRunnable);
|
|
|
|
}).start();
|
|
|
|
alertDialog.dismiss();
|
2020-10-17 18:50:20 +02:00
|
|
|
if (action_button != null) {
|
2020-10-16 17:03:07 +02:00
|
|
|
action_button.setEnabled(false);
|
|
|
|
}
|
2020-09-25 18:58:04 +02:00
|
|
|
} else {
|
|
|
|
Toasty.error(context, context.getString(R.string.error_display_name_channel), Toast.LENGTH_LONG).show();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (oldChannelValues == null) {
|
|
|
|
alertDialog.setTitle(getString(R.string.action_channel_create));
|
|
|
|
} else {
|
|
|
|
alertDialog.setTitle(getString(R.string.action_channel_edit));
|
|
|
|
}
|
|
|
|
alertDialog.setOnDismissListener(dialogInterface -> {
|
|
|
|
//Hide keyboard
|
|
|
|
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
|
|
|
assert imm != null;
|
2020-11-21 17:17:34 +01:00
|
|
|
imm.hideSoftInputFromWindow(bindingDialog.displayName.getWindowToken(), 0);
|
2020-09-25 18:58:04 +02:00
|
|
|
});
|
|
|
|
if (alertDialog.getWindow() != null)
|
|
|
|
alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
|
|
|
alertDialog.show();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void show(ChannelData.Channel channel) {
|
|
|
|
ChannelParams oldChannelValues = new ChannelParams();
|
|
|
|
oldChannelValues.setName(channel.getName());
|
|
|
|
oldChannelValues.setDescription(channel.getDescription());
|
|
|
|
oldChannelValues.setDisplayName(channel.getDisplayName());
|
|
|
|
manageAlert(oldChannelValues);
|
|
|
|
}
|
|
|
|
}
|