This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handling notifications click properly to close #17, extra step to par…
…se notification urls to open their associate view.
- Loading branch information
Kosh
committed
Feb 27, 2017
1 parent
90cd623
commit 9f642ab
Showing
7 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
app/src/main/java/com/fastaccess/ui/modules/notification/NotificationActivityView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.fastaccess.ui.modules.notification; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
import com.fastaccess.R; | ||
import com.fastaccess.ui.base.BaseActivity; | ||
import com.fastaccess.ui.base.mvp.presenter.BasePresenter; | ||
|
||
import net.grandcentrix.thirtyinch.TiPresenter; | ||
|
||
/** | ||
* Created by Kosh on 27 Feb 2017, 12:36 PM | ||
*/ | ||
|
||
public class NotificationActivityView extends BaseActivity { | ||
@Override protected int layout() { | ||
return R.layout.notification_activity_layout; | ||
} | ||
|
||
@Override protected boolean isTransparent() { | ||
return false; | ||
} | ||
|
||
@Override protected boolean canBack() { | ||
return true; | ||
} | ||
|
||
@Override protected boolean isSecured() { | ||
return false; | ||
} | ||
|
||
@NonNull @Override public TiPresenter providePresenter() { | ||
return new BasePresenter(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/src/main/res/layouts/main_layouts/layout/notification_activity_layout.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.design.widget.CoordinatorLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<include layout="@layout/appbar_elevation_dark"/> | ||
|
||
<fragment | ||
android:id="@+id/notificationFragment" | ||
android:name="com.fastaccess.ui.modules.notification.NotificationsView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:layout_behavior="@string/scroll_behavior" | ||
tools:layout="@layout/small_grid_refresh_list"/> | ||
|
||
</android.support.design.widget.CoordinatorLayout> |