Remove redundant methods
This commit is contained in:
parent
2ab8e7fd71
commit
5cef335b27
10 changed files with 6 additions and 41 deletions
|
|
@ -37,11 +37,6 @@ public class HistoryPlaylist extends AbsSmartPlaylist {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
}
|
||||
|
||||
protected HistoryPlaylist(Parcel in) {
|
||||
super(in);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@ public class LastAddedPlaylist extends AbsSmartPlaylist {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
}
|
||||
|
||||
protected LastAddedPlaylist(Parcel in) {
|
||||
super(in);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,11 +37,6 @@ public class MyTopTracksPlaylist extends AbsSmartPlaylist {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
}
|
||||
|
||||
protected MyTopTracksPlaylist(Parcel in) {
|
||||
super(in);
|
||||
}
|
||||
|
|
@ -55,4 +50,4 @@ public class MyTopTracksPlaylist extends AbsSmartPlaylist {
|
|||
return new MyTopTracksPlaylist[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,11 +32,6 @@ public class ShuffleAllPlaylist extends AbsSmartPlaylist {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
}
|
||||
|
||||
protected ShuffleAllPlaylist(Parcel in) {
|
||||
super(in);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,11 +92,6 @@ public class SearchActivity extends AbsMusicServiceActivity implements SearchVie
|
|||
outState.putString(QUERY, query);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onRestoreInstanceState(Bundle savedInstanceState) {
|
||||
super.onRestoreInstanceState(savedInstanceState);
|
||||
}
|
||||
|
||||
private void setUpToolBar() {
|
||||
toolbar.setBackgroundColor(ThemeStore.primaryColor(this));
|
||||
setSupportActionBar(toolbar);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ public abstract class AbsMusicServiceActivity extends AbsBaseActivity implements
|
|||
private MusicStateReceiver musicStateReceiver;
|
||||
private boolean receiverRegistered;
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
|
|||
|
|
@ -260,18 +260,12 @@ public class BugReportActivity extends AbsThemeActivity {
|
|||
String bugTitle = inputTitle.getText().toString();
|
||||
String bugDescription = inputDescription.getText().toString();
|
||||
|
||||
ExtraInfo extraInfo = new ExtraInfo();
|
||||
onSaveExtraInfo(extraInfo);
|
||||
|
||||
Report report = new Report(bugTitle, bugDescription, deviceInfo, extraInfo);
|
||||
Report report = new Report(bugTitle, bugDescription, deviceInfo, new ExtraInfo());
|
||||
GithubTarget target = new GithubTarget("kabouzeid", "Phonograph");
|
||||
|
||||
ReportIssueAsyncTask.report(this, report, target, login);
|
||||
}
|
||||
|
||||
protected void onSaveExtraInfo(ExtraInfo extraInfo) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
if (item.getItemId() == android.R.id.home) {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,9 @@ package com.kabouzeid.gramophone.ui.activities.bugreport.model.github;
|
|||
import android.text.TextUtils;
|
||||
|
||||
public class GithubLogin {
|
||||
|
||||
private final String username;
|
||||
|
||||
private final String password;
|
||||
|
||||
private final String apiToken;
|
||||
|
||||
public GithubLogin(String username, String password) {
|
||||
|
|
|
|||
|
|
@ -137,13 +137,13 @@ public class LibraryFragment extends AbsMainActivityFragment implements CabHolde
|
|||
tabs.setSelectedTabIndicatorColor(ThemeStore.accentColor(getActivity()));
|
||||
|
||||
updateTabVisibility();
|
||||
|
||||
|
||||
if (PreferenceUtil.getInstance(getContext()).rememberLastTab()) {
|
||||
pager.setCurrentItem(PreferenceUtil.getInstance(getContext()).getLastPage());
|
||||
}
|
||||
pager.addOnPageChangeListener(this);
|
||||
}
|
||||
|
||||
|
||||
private void updateTabVisibility() {
|
||||
// hide the tab bar when only a single tab is visible
|
||||
tabs.setVisibility(pagerAdapter.getCount() == 1 ? View.GONE : View.VISIBLE);
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ public class MusicUtil {
|
|||
public static final String TAG = MusicUtil.class.getSimpleName();
|
||||
|
||||
public static Uri getMediaStoreAlbumCoverUri(int albumId) {
|
||||
final Uri sArtworkUri = Uri
|
||||
.parse("content://media/external/audio/albumart");
|
||||
final Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart");
|
||||
|
||||
return ContentUris.withAppendedId(sArtworkUri, albumId);
|
||||
}
|
||||
|
|
@ -58,7 +57,6 @@ public class MusicUtil {
|
|||
@NonNull
|
||||
public static Intent createShareSongFileIntent(@NonNull final Song song, Context context) {
|
||||
try {
|
||||
|
||||
return new Intent()
|
||||
.setAction(Intent.ACTION_SEND)
|
||||
.putExtra(Intent.EXTRA_STREAM, FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName(), new File(song.data)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue