thkouk00

bill payment small fix

......@@ -5,12 +5,10 @@ import android.view.MenuItem;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.material.navigation.NavigationBarView;
import ly.warp.sdk.fragments.BillPaymentFragment;
import ly.warp.sdk.fragments.HomeFragment;
import ly.warp.sdk.fragments.LoyaltyFragment;
import warp.ly.android_sdk.R;
......@@ -63,13 +61,6 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt
.addToBackStack(null)
.commit();
return true;
case R.id.menu_shop:
mFragmentToSet = BillPaymentFragment.newInstance();
getSupportFragmentManager().beginTransaction()
.replace(R.id.fl_fragment, mFragmentToSet)
.addToBackStack(null)
.commit();
return true;
}
return false;
}
......
......@@ -27,7 +27,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_bill_payment);
setContentView(R.layout.activity_bill_payment);
// mIvBack = findViewById(R.id.iv_back);
......
package ly.warp.sdk.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import ly.warp.sdk.R;
import ly.warp.sdk.activities.BillPaymentActivity;
import ly.warp.sdk.activities.LoyaltyActivity;
public class BillPaymentFragment extends Fragment {
@Override
public View onCreateView(
LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState
) {
return inflater.inflate(R.layout.fragment_bill_payment, container, false);
}
public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
@Override
public void onDestroyView() {
super.onDestroyView();
}
public void onClick(View view) {
// if (view.getId() == R.id.cl_rewards_wallet) {
Intent intent = new Intent(getContext(), BillPaymentActivity.class);
getContext().startActivity(intent);
// }
}
public static Fragment newInstance() {
BillPaymentFragment billPaymentFragment = new BillPaymentFragment();
return billPaymentFragment;
}
}
\ No newline at end of file