Skip to content

Commit

Permalink
v2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiOne committed Aug 23, 2018
1 parent 16b3117 commit 4e61fce
Show file tree
Hide file tree
Showing 17 changed files with 320 additions and 301 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
applicationId "com.yoshione.fingen"
minSdkVersion 21
targetSdkVersion 27
versionCode 125
versionName "2.6"
versionCode 127
versionName "2.6.2"
resValue "string", "app_name", "Fingen"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/yoshione/fingen/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import com.mikepenz.materialdrawer.model.DividerDrawerItem;
import com.mikepenz.materialdrawer.model.PrimaryDrawerItem;
import com.sothree.slidinguppanel.SlidingUpPanelLayout;
import com.yoshione.fingen.adapter.AdapterTransactions;
import com.yoshione.fingen.adapter.TransactionsArrayAdapter;
import com.yoshione.fingen.dao.SendersDAO;
import com.yoshione.fingen.dao.SmsDAO;
Expand All @@ -66,6 +65,7 @@
import com.yoshione.fingen.fts.ActivityScanQR;
import com.yoshione.fingen.iab.BillingService;
import com.yoshione.fingen.interfaces.IAbstractModel;
import com.yoshione.fingen.interfaces.ITransactionItemEventListener;
import com.yoshione.fingen.managers.AccountsSetManager;
import com.yoshione.fingen.managers.TransactionManager;
import com.yoshione.fingen.model.AccountsSet;
Expand Down Expand Up @@ -900,7 +900,7 @@ protected void onActivityResult(final int requestCode, final int resultCode, fin

final Dialog[] dialog = new Dialog[]{null};
final TransactionsArrayAdapter arrayAdapter = new TransactionsArrayAdapter(
this, transactions, new AdapterTransactions.OnTransactionItemEventListener() {
this, transactions, new ITransactionItemEventListener() {
@Override
public void onTransactionItemClick(Transaction foundTransaction) {
dialog[0].dismiss();
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/com/yoshione/fingen/ActivityPro.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ private void updateRW() {
if (!skuDetailsWrapper.isPurchased()) {
mBillingService.getBillingProcessor().purchase(ActivityPro.this, skuDetailsWrapper.getSkuDetails().productId);
} else {
unsubscribeOnDestroy(
mBillingService.consumePurchase(skuDetailsWrapper.getSkuDetails().productId)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(() -> mAdapterSku.notifyDataSetChanged()));
// unsubscribeOnDestroy(
// mBillingService.consumePurchase(skuDetailsWrapper.getSkuDetails().productId)
// .subscribeOn(Schedulers.io())
// .observeOn(AndroidSchedulers.mainThread())
// .subscribe(() -> mAdapterSku.notifyDataSetChanged()));
}
});
mAdapterSku.getItemList().add(reportsItem);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/yoshione/fingen/FgConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class FgConst {
public static final String FRAGMENT_TRANSACTIONS = "transactions";
//</editor-fold>

public static final int NUMBER_ITEMS_TO_BE_LOADED = 25;

public static final String TEI_DATETIME = "datetime";
public static final String TEI_ACCOUNT = "account";
public static final String TEI_PAYEE_DEST_ACC = "payee_dest_acc";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void initContextMenuAccounts(MenuItem item) {
case R.id.action_show_transactions: {
if (Objects.requireNonNull(getActivity()).getClass().equals(ActivityMain.class)) {
ActivityMain activityMain = (ActivityMain) getActivity();
if (activityMain.fragmentTransactions.adapterFilters != null) {
if (activityMain.fragmentTransactions.adapterF != null) {
Account account = mAccountsDAO.get().getAccountByID(info.id);
AccountFilter filter = new AccountFilter(0);
filter.addAccount(account.getID());
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/java/com/yoshione/fingen/FragmentPayee.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.yoshione.fingen;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
Expand Down Expand Up @@ -115,9 +116,12 @@ public void afterTextChanged(Editable editable) {
if (mCallback.isShowKeyboard()) {
if (hasFocus) {
new Handler().postDelayed(() -> {
InputMethodManager imm = (InputMethodManager) FragmentPayee.this.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null) {
imm.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT);
Activity activity = FragmentPayee.this.getActivity();
if (activity != null) {
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null) {
imm.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT);
}
}
}, 200);
}
Expand Down
Loading

0 comments on commit 4e61fce

Please sign in to comment.