Add reward drivers. French, Indonesian, Malay and Turkish strings.
This commit is contained in:
parent
f86b61741d
commit
4bac266b8b
18 changed files with 2512 additions and 20 deletions
app/src/main/java/io/lbry/browser
|
@ -384,8 +384,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
ViewCompat.onApplyWindowInsets(findViewById(R.id.url_suggestions_container),
|
||||
insets.replaceSystemWindowInsets(0, 0, 0, insets.getSystemWindowInsetBottom()));
|
||||
return ViewCompat.onApplyWindowInsets(v,
|
||||
insets.replaceSystemWindowInsets(insets.getSystemWindowInsetLeft(), 0,
|
||||
0, insets.getSystemWindowInsetBottom()));
|
||||
insets.replaceSystemWindowInsets(
|
||||
insets.getSystemWindowInsetLeft(),
|
||||
0,
|
||||
0,
|
||||
insets.getSystemWindowInsetBottom()));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -510,7 +513,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
private void initSpecialRouteMap() {
|
||||
specialRouteFragmentClassMap = new HashMap<>();
|
||||
specialRouteFragmentClassMap.put("about", AboutFragment.class);
|
||||
specialRouteFragmentClassMap.put("allContent", AllContentFragment.class);
|
||||
specialRouteFragmentClassMap.put("allcontent", AllContentFragment.class);
|
||||
specialRouteFragmentClassMap.put("channels", ChannelManagerFragment.class);
|
||||
specialRouteFragmentClassMap.put("invite", InvitesFragment.class);
|
||||
specialRouteFragmentClassMap.put("invites", InvitesFragment.class);
|
||||
|
@ -764,6 +767,10 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
openFragment(FileViewFragment.class, true, NavMenuItem.ID_ITEM_FOLLOWING, params);
|
||||
}
|
||||
|
||||
public void openRewards() {
|
||||
openFragment(RewardsFragment.class, true, NavMenuItem.ID_ITEM_REWARDS);
|
||||
}
|
||||
|
||||
private FragmentManager.OnBackStackChangedListener backStackChangedListener = new FragmentManager.OnBackStackChangedListener() {
|
||||
@Override
|
||||
public void onBackStackChanged() {
|
||||
|
@ -2332,7 +2339,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
String url = data.toString();
|
||||
// check special urls
|
||||
if (url.startsWith("lbry://?")) {
|
||||
String specialPath = url.substring(8);
|
||||
String specialPath = url.substring(8).toLowerCase();
|
||||
if (specialRouteFragmentClassMap.containsKey(specialPath)) {
|
||||
Class fragmentClass = specialRouteFragmentClassMap.get(specialPath);
|
||||
if (fragmentClassNavIdMap.containsKey(fragmentClass)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue