Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
hosoyu committed Jul 13, 2015
1 parent 24d5341 commit 6a4eaa6
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 19 deletions.
Binary file modified LimeStudio/app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions LimeStudio/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {
applicationId "net.toload.main.hd"
minSdkVersion 16
targetSdkVersion 22
versionCode 511
versionName '5.0.3'
versionCode 512
versionName '5.0.4'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,8 @@ public class LimeDB extends LimeSQLiteOpenHelper {

// Cache for Related Score
private HashMap<String, Integer> relatedscore = new HashMap<>();


private LimeHanConverter hanConverter;







public void setFinish(boolean value) {
this.finish = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ public void addRelated(String pword, String cword, int score) {

public void updateRelated(int id, String pword, String cword, int score) {

if(datasource.hasRelated(pword, cword) == 0){

// remove from temp list
for(int i = 0 ; i < total ; i++){
if(id== this.relatedlist.get(i).getId()){
Expand All @@ -463,10 +461,6 @@ public void updateRelated(int id, String pword, String cword, int score) {

searchrelated();

}else{
Toast.makeText(activity, R.string.manage_related_duplicated, Toast.LENGTH_SHORT).show();
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Typeface;
import android.net.ConnectivityManager;
import android.os.Bundle;
Expand All @@ -41,6 +43,7 @@
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.dropbox.client2.DropboxAPI;
Expand Down Expand Up @@ -142,6 +145,8 @@ public class SetupImFragment extends Fragment {

List<Im> imlist;

TextView txtVersion;

// Vpon
//private RelativeLayout adBannerLayout;
// private VpadnBanner vpadnBanner = null;
Expand Down Expand Up @@ -382,6 +387,16 @@ public void onClick(View v) {

}

PackageInfo pInfo = null;
try {
pInfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);
String versionstr = "v"+ pInfo.versionName + " - " + pInfo.versionCode;
txtVersion = (TextView) rootView.findViewById(R.id.txtVersion);
txtVersion.setText(versionstr);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}

return rootView;
}

Expand Down
18 changes: 15 additions & 3 deletions LimeStudio/app/src/main/res/layout/fragment_setup_im.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,25 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/SetupImFragment"
android:padding="10dp">
android:padding="5dp">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="0.0"
android:paddingRight="10dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:id="@+id/txtVersion"
android:layout_gravity="right" />

<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/Setup_Wizard"
android:padding="10dp"
android:padding="5dp"
android:layout_gravity="top">
<TextView
android:layout_width="wrap_content"
Expand Down Expand Up @@ -114,7 +126,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/SetupImList"
android:padding="10dp">
android:padding="5dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 6a4eaa6

Please sign in to comment.