Showing
4 changed files
with
1 additions
and
57 deletions
| ... | @@ -5,12 +5,10 @@ import android.view.MenuItem; | ... | @@ -5,12 +5,10 @@ import android.view.MenuItem; |
| 5 | 5 | ||
| 6 | import androidx.annotation.NonNull; | 6 | import androidx.annotation.NonNull; |
| 7 | import androidx.fragment.app.Fragment; | 7 | import androidx.fragment.app.Fragment; |
| 8 | -import androidx.fragment.app.FragmentTransaction; | ||
| 9 | 8 | ||
| 10 | import com.google.android.material.bottomnavigation.BottomNavigationView; | 9 | import com.google.android.material.bottomnavigation.BottomNavigationView; |
| 11 | import com.google.android.material.navigation.NavigationBarView; | 10 | import com.google.android.material.navigation.NavigationBarView; |
| 12 | 11 | ||
| 13 | -import ly.warp.sdk.fragments.BillPaymentFragment; | ||
| 14 | import ly.warp.sdk.fragments.HomeFragment; | 12 | import ly.warp.sdk.fragments.HomeFragment; |
| 15 | import ly.warp.sdk.fragments.LoyaltyFragment; | 13 | import ly.warp.sdk.fragments.LoyaltyFragment; |
| 16 | import warp.ly.android_sdk.R; | 14 | import warp.ly.android_sdk.R; |
| ... | @@ -63,13 +61,6 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt | ... | @@ -63,13 +61,6 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt |
| 63 | .addToBackStack(null) | 61 | .addToBackStack(null) |
| 64 | .commit(); | 62 | .commit(); |
| 65 | return true; | 63 | return true; |
| 66 | - case R.id.menu_shop: | ||
| 67 | - mFragmentToSet = BillPaymentFragment.newInstance(); | ||
| 68 | - getSupportFragmentManager().beginTransaction() | ||
| 69 | - .replace(R.id.fl_fragment, mFragmentToSet) | ||
| 70 | - .addToBackStack(null) | ||
| 71 | - .commit(); | ||
| 72 | - return true; | ||
| 73 | } | 64 | } |
| 74 | return false; | 65 | return false; |
| 75 | } | 66 | } | ... | ... |
| ... | @@ -27,7 +27,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene | ... | @@ -27,7 +27,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene |
| 27 | @Override | 27 | @Override |
| 28 | public void onCreate(Bundle savedInstanceState) { | 28 | public void onCreate(Bundle savedInstanceState) { |
| 29 | super.onCreate(savedInstanceState); | 29 | super.onCreate(savedInstanceState); |
| 30 | - setContentView(R.layout.fragment_bill_payment); | 30 | + setContentView(R.layout.activity_bill_payment); |
| 31 | 31 | ||
| 32 | // mIvBack = findViewById(R.id.iv_back); | 32 | // mIvBack = findViewById(R.id.iv_back); |
| 33 | 33 | ... | ... |
| 1 | -package ly.warp.sdk.fragments; | ||
| 2 | - | ||
| 3 | -import android.content.Intent; | ||
| 4 | -import android.os.Bundle; | ||
| 5 | -import android.view.LayoutInflater; | ||
| 6 | -import android.view.View; | ||
| 7 | -import android.view.ViewGroup; | ||
| 8 | - | ||
| 9 | -import androidx.annotation.NonNull; | ||
| 10 | -import androidx.fragment.app.Fragment; | ||
| 11 | - | ||
| 12 | -import ly.warp.sdk.R; | ||
| 13 | -import ly.warp.sdk.activities.BillPaymentActivity; | ||
| 14 | -import ly.warp.sdk.activities.LoyaltyActivity; | ||
| 15 | - | ||
| 16 | -public class BillPaymentFragment extends Fragment { | ||
| 17 | - | ||
| 18 | - @Override | ||
| 19 | - public View onCreateView( | ||
| 20 | - LayoutInflater inflater, ViewGroup container, | ||
| 21 | - Bundle savedInstanceState | ||
| 22 | - ) { | ||
| 23 | - return inflater.inflate(R.layout.fragment_bill_payment, container, false); | ||
| 24 | - } | ||
| 25 | - | ||
| 26 | - public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { | ||
| 27 | - super.onViewCreated(view, savedInstanceState); | ||
| 28 | - | ||
| 29 | - } | ||
| 30 | - | ||
| 31 | - @Override | ||
| 32 | - public void onDestroyView() { | ||
| 33 | - super.onDestroyView(); | ||
| 34 | - } | ||
| 35 | - | ||
| 36 | - public void onClick(View view) { | ||
| 37 | -// if (view.getId() == R.id.cl_rewards_wallet) { | ||
| 38 | - Intent intent = new Intent(getContext(), BillPaymentActivity.class); | ||
| 39 | - getContext().startActivity(intent); | ||
| 40 | -// } | ||
| 41 | - } | ||
| 42 | - | ||
| 43 | - public static Fragment newInstance() { | ||
| 44 | - BillPaymentFragment billPaymentFragment = new BillPaymentFragment(); | ||
| 45 | - return billPaymentFragment; | ||
| 46 | - } | ||
| 47 | -} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment