This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #11112 - Adds save tabs to collection button to the no collection…
…s message
- Loading branch information
Showing
11 changed files
with
108 additions
and
127 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
26 changes: 26 additions & 0 deletions
26
.../java/org/mozilla/fenix/home/sessioncontrol/viewholders/NoCollectionsMessageViewHolder.kt
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,26 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.fenix.home.sessioncontrol.viewholders | ||
|
||
import android.view.View | ||
import kotlinx.android.synthetic.main.no_collections_message.view.* | ||
import org.mozilla.fenix.R | ||
import org.mozilla.fenix.ext.ViewHolder | ||
import org.mozilla.fenix.home.sessioncontrol.CollectionInteractor | ||
|
||
open class NoCollectionsMessageViewHolder( | ||
view: View, | ||
interactor: CollectionInteractor | ||
) : ViewHolder(view) { | ||
|
||
init { | ||
view.add_tabs_to_collections_button.setOnClickListener { | ||
interactor.onAddTabsToCollectionTapped() | ||
} | ||
} | ||
companion object { | ||
const val LAYOUT_ID = R.layout.no_collections_message | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
...main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/NoContentMessageViewHolder.kt
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
<LinearLayout | ||
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:id="@+id/no_collections_wrapper" | ||
android:background="@drawable/empty_session_control_background" | ||
android:layout_marginBottom="12dp" | ||
android:padding="16dp" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:id="@+id/no_collections_header" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/no_collections_header1" | ||
tools:drawableEnd="@drawable/ic_tab_collection" | ||
android:textAppearance="@style/HeaderTextStyle" | ||
android:textSize="16sp" | ||
app:fontFamily="@font/metropolis_semibold" /> | ||
|
||
<TextView | ||
android:id="@+id/no_collections_description" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="4dp" | ||
android:text="@string/no_collections_description1" | ||
android:textColor="?primaryText" | ||
android:textSize="14sp" | ||
android:textAlignment="viewStart" | ||
app:fontFamily="@font/metropolis_medium" /> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/add_tabs_to_collections_button" | ||
style="@style/PositiveButton" | ||
app:icon="@drawable/ic_tab_collection" | ||
android:text="@string/tabs_menu_save_to_collection1" | ||
android:layout_marginTop="8dp"/> | ||
</LinearLayout> |
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
app/src/main/res/layout/no_content_message_with_action.xml
This file was deleted.
Oops, something went wrong.
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