mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove redundant empty if/else statement in NotificationActivity (#2953)
* Remove redundant empty if/else statement This patch removes an empty if/else statement that has no effect on the execution flow of the program. * Remove redundant empty if/else statement in MainActivity This patch removes an empty if/else statement that has no effect on the execution flow of the program, which makes the code simpler.
This commit is contained in:
parent
45fd7fe5fa
commit
877c669297
2 changed files with 0 additions and 3 deletions
|
|
@ -485,8 +485,6 @@ public class MainActivity extends AuthenticatedActivity implements FragmentManag
|
||||||
viewPager.setCurrentItem(CONTRIBUTIONS_TAB_POSITION);
|
viewPager.setCurrentItem(CONTRIBUTIONS_TAB_POSITION);
|
||||||
|
|
||||||
// TODO: If contrib fragment is visible and location permission is not given, display permission request button
|
// TODO: If contrib fragment is visible and location permission is not given, display permission request button
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,6 @@ public class NotificationActivity extends NavigationBaseActivity {
|
||||||
no_notification.setVisibility(View.VISIBLE);
|
no_notification.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
setAdapter(notificationList);
|
setAdapter(notificationList);
|
||||||
} if (notificationMenuItem != null) {
|
|
||||||
}
|
}
|
||||||
progressBar.setVisibility(View.GONE);
|
progressBar.setVisibility(View.GONE);
|
||||||
}, throwable -> {
|
}, throwable -> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue