Don't retain cover fragment
This commit is contained in:
parent
7e9e3bb946
commit
f364824368
|
@ -257,12 +257,6 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onDestroy() {
|
|
||||||
super.onDestroy();
|
|
||||||
Log.d(TAG, "onDestroy()");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
|
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
|
||||||
@Override
|
@Override
|
||||||
public void onTrimMemory(int level) {
|
public void onTrimMemory(int level) {
|
||||||
|
|
|
@ -48,7 +48,6 @@ public class CoverFragment extends Fragment implements
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setRetainInstance(true);
|
|
||||||
Bundle args = getArguments();
|
Bundle args = getArguments();
|
||||||
if (args != null) {
|
if (args != null) {
|
||||||
media = args.getParcelable(ARG_PLAYABLE);
|
media = args.getParcelable(ARG_PLAYABLE);
|
||||||
|
|
Loading…
Reference in New Issue