55 lines
1.6 KiB
Java
55 lines
1.6 KiB
Java
package app.fedilab.fedilabtube;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.MenuItem;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import androidx.fragment.app.FragmentTransaction;
|
|
|
|
import app.fedilab.fedilabtube.asynctasks.RetrieveFeedsAsyncTask;
|
|
import app.fedilab.fedilabtube.client.APIResponse;
|
|
import app.fedilab.fedilabtube.fragment.DisplayStatusFragment;
|
|
import app.fedilab.fedilabtube.interfaces.OnRetrieveFeedsInterface;
|
|
|
|
|
|
public class MyVideosActivity extends AppCompatActivity implements OnRetrieveFeedsInterface {
|
|
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.activity_search_result);
|
|
|
|
if (getSupportActionBar() != null)
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
setTitle(R.string.my_videos);
|
|
|
|
|
|
if (savedInstanceState == null) {
|
|
DisplayStatusFragment displayStatusFragment = new DisplayStatusFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putSerializable("type", RetrieveFeedsAsyncTask.Type.MYVIDEOS);
|
|
displayStatusFragment.setArguments(bundle);
|
|
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
|
ft.add(R.id.container, displayStatusFragment).commit();
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
if (item.getItemId() == android.R.id.home) {
|
|
finish();
|
|
return true;
|
|
}
|
|
return super.onOptionsItemSelected(item);
|
|
}
|
|
|
|
|
|
@Override
|
|
public void onRetrieveFeeds(APIResponse apiResponse) {
|
|
|
|
}
|
|
}
|