-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to hide top bar, fix extension management on ATV.
- Loading branch information
Showing
12 changed files
with
54 additions
and
16 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
|
||
public class ExtensionPromptDelegate implements WebExtensionController.PromptDelegate { | ||
final static String EXTENSIONS_URL = "https://addons.mozilla.org/firefox/extensions/"; | ||
/** @noinspection deprecation*/ | ||
@Nullable | ||
@Override | ||
public GeckoResult<AllowOrDeny> onInstallPrompt(@NonNull WebExtension extension) { | ||
|
@@ -39,14 +40,14 @@ public void showList() { | |
|
||
final AlertDialog dialog = Dialog.build(activity, R.layout.dialog_webextensions); | ||
assert dialog != null; | ||
dialog.hide(); | ||
|
||
dialog.findViewById(R.id.getMoreButton).setOnClickListener(view -> { | ||
if (activity instanceof BrowserActivity) { | ||
((BrowserActivity) activity).loadUrl(EXTENSIONS_URL); | ||
dialog.dismiss(); | ||
} | ||
}); | ||
|
||
View dismiss = dialog.findViewById(R.id.dismissButton); | ||
dismiss.setOnClickListener(view -> dialog.dismiss()); | ||
|
||
|
@@ -108,15 +109,13 @@ public View getView(final int position, View view, @NonNull final ViewGroup pare | |
value.removeIf(webExtension -> webExtension.id.equals("[email protected]")); | ||
} | ||
adapter.addAll(value); | ||
|
||
dialog.show(); | ||
|
||
ListView lv = dialog.findViewById(R.id.listView); | ||
lv.setAdapter(adapter); | ||
return null; | ||
}); | ||
|
||
|
||
|
||
} | ||
} | ||
|
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,5 @@ | ||
<vector android:height="20dp" android:tint="#FFFFFF" | ||
android:viewportHeight="24" android:viewportWidth="24" | ||
android:width="20dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-4.59-4.59c-.39-.39-1.02-.39-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0z"/> | ||
</vector> |
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
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