fix release crash because of setting sidebar header
This commit is contained in:
parent
736c902f3c
commit
a9fea9f606
|
@ -176,9 +176,11 @@ public class MainActivity extends AppCompatActivity {
|
|||
// when the user returns to MainActivity
|
||||
drawer.closeDrawer(Gravity.START, false);
|
||||
try {
|
||||
if(BuildConfig.BUILD_TYPE != "release" ) {
|
||||
String selectedServiceName = NewPipe.getService(
|
||||
ServiceHelper.getSelectedServiceId(this)).getServiceInfo().getName();
|
||||
headerServiceView.setText(selectedServiceName);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ErrorActivity.reportUiError(this, e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue