Skip to content

Commit 901ab41

Browse files
committed
Code refactoring.
1 parent 7183f69 commit 901ab41

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

app/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ protected void onCreate(Bundle savedInstanceState) {
9898

9999
// setup toolbar
100100
setupToolbar();
101-
// showHideDefaultToolbarDivider(true);
102101

103102
updateActionBarTitleAndHomeButtonByString(getString(R.string.drawer_item_notifications));
104103

@@ -160,11 +159,14 @@ private void setupPushWarning() {
160159
} else {
161160
String pushValue = arbitraryDataProvider.getValue(accountName, PushUtils.KEY_PUSH);
162161

163-
if (pushValue == null || pushValue.isEmpty()) {
162+
//NMC Note -> Need to disable this error message for now as we will configure our
163+
//own push notification server later not now
164+
//once we will configure our server we will uncomment the below code.
165+
/* if (pushValue == null || pushValue.isEmpty()) {
164166
snackbar = Snackbar.make(binding.emptyList.emptyListView,
165167
R.string.push_notifications_temp_error,
166168
Snackbar.LENGTH_INDEFINITE);
167-
}
169+
}*/
168170
}
169171
}
170172

app/src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import android.content.Intent;
2424
import android.content.res.Configuration;
2525
import android.content.res.Resources;
26-
import android.graphics.Color;
2726
import android.graphics.PorterDuff;
2827
import android.graphics.Typeface;
2928
import android.graphics.drawable.Drawable;

app/src/main/res/menu/partial_drawer_entries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
android:icon="@drawable/nav_recently"
5959
android:orderInCategory="0"
6060
android:title="@string/drawer_item_recently_modified"
61-
android:visible="false"/>
61+
android:visible="true"/>
6262
<item
6363
android:orderInCategory="0"
6464
android:id="@+id/nav_notifications"

0 commit comments

Comments
 (0)