mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-11-04 05:25:35 +00:00 
			
		
		
		
	parse locationId to long before setting to bundle. Fixes austinhuang0131/barinsta#1235
This commit is contained in:
		
							parent
							
								
									79fe697167
								
							
						
					
					
						commit
						413f12c3c2
					
				@ -2,6 +2,7 @@ package awais.instagrabber.fragments;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import android.content.Context;
 | 
					import android.content.Context;
 | 
				
			||||||
import android.os.Bundle;
 | 
					import android.os.Bundle;
 | 
				
			||||||
 | 
					import android.util.Log;
 | 
				
			||||||
import android.view.LayoutInflater;
 | 
					import android.view.LayoutInflater;
 | 
				
			||||||
import android.view.View;
 | 
					import android.view.View;
 | 
				
			||||||
import android.view.ViewGroup;
 | 
					import android.view.ViewGroup;
 | 
				
			||||||
@ -102,8 +103,13 @@ public class FavoritesFragment extends Fragment {
 | 
				
			|||||||
                    // Log.d(TAG, "locationId: " + locationId);
 | 
					                    // Log.d(TAG, "locationId: " + locationId);
 | 
				
			||||||
                    final NavController navController = NavHostFragment.findNavController(this);
 | 
					                    final NavController navController = NavHostFragment.findNavController(this);
 | 
				
			||||||
                    final Bundle bundle = new Bundle();
 | 
					                    final Bundle bundle = new Bundle();
 | 
				
			||||||
                    bundle.putString("locationId", locationId);
 | 
					                    try {
 | 
				
			||||||
                    navController.navigate(R.id.action_global_locationFragment, bundle);
 | 
					                        bundle.putLong("locationId", Long.parseLong(locationId));
 | 
				
			||||||
 | 
					                        navController.navigate(R.id.action_global_locationFragment, bundle);
 | 
				
			||||||
 | 
					                    } catch (Exception e) {
 | 
				
			||||||
 | 
					                        Log.e(TAG, "init: ", e);
 | 
				
			||||||
 | 
					                        return;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                case HASHTAG: {
 | 
					                case HASHTAG: {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user