forked from ReVanced/revanced-integrations
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from swakwork/dev
feat(Twitter): Added `Customize Navigation Bar items` patch
- Loading branch information
Showing
6 changed files
with
63 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/app/revanced/integrations/twitter/patches/customise/NavBar.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,34 @@ | ||
package app.revanced.integrations.twitter.patches.customise; | ||
|
||
import android.util.*; | ||
import java.util.*; | ||
import java.lang.reflect.Field; | ||
import app.revanced.integrations.twitter.Pref; | ||
|
||
public class NavBar { | ||
|
||
public static void logger(Object j){ | ||
Log.d("piko", j.toString()); | ||
} | ||
|
||
|
||
public static List navBar(List inp){ | ||
try{ | ||
ArrayList choices = Pref.customNavbar(); | ||
List list2 = new ArrayList<>(inp); | ||
Iterator itr = list2.iterator(); | ||
|
||
while (itr.hasNext()) { | ||
Object obj = itr.next(); | ||
String itemStr = obj.toString(); | ||
if(choices.contains(itemStr)){ | ||
inp.remove(obj); | ||
} | ||
} | ||
|
||
}catch (Exception e){ | ||
logger(e); | ||
} | ||
return inp; | ||
} | ||
} |
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