Merge branch '1.3-release-polish' into 'master'
1.3 release polish Closes #1450, #1502, #1434, and #871 See merge request fdroid/fdroidclient!708
This commit is contained in:
		
						commit
						35a2ec5687
					
				| @ -567,7 +567,7 @@ public class SwapService extends Service { | ||||
|         return new NotificationCompat.Builder(this) | ||||
|                 .setContentTitle(getText(R.string.local_repo_running)) | ||||
|                 .setContentText(getText(R.string.touch_to_configure_local_repo)) | ||||
|                 .setSmallIcon(R.drawable.ic_swap) | ||||
|                 .setSmallIcon(R.drawable.ic_nearby) | ||||
|                 .setContentIntent(contentIntent) | ||||
|                 .build(); | ||||
|     } | ||||
|  | ||||
| @ -14,6 +14,7 @@ import android.support.v4.content.LocalBroadcastManager; | ||||
| import android.text.TextUtils; | ||||
| import android.util.Log; | ||||
| import org.apache.commons.net.util.SubnetUtils; | ||||
| import org.fdroid.fdroid.BuildConfig; | ||||
| import org.fdroid.fdroid.FDroidApp; | ||||
| import org.fdroid.fdroid.Preferences; | ||||
| import org.fdroid.fdroid.UpdateService; | ||||
| @ -266,11 +267,17 @@ public class WifiStateChangeService extends IntentService { | ||||
|                                 // java.lang.IllegalArgumentException: Value [64] not in range [0,32] | ||||
|                                 continue; | ||||
|                             } | ||||
|                             if (inetAddress.equals(address.getAddress()) && !TextUtils.isEmpty(FDroidApp.ipAddressString)) { | ||||
|                             try { | ||||
|                                 String cidr = String.format(Locale.ENGLISH, "%s/%d", | ||||
|                                         FDroidApp.ipAddressString, networkPrefixLength); | ||||
|                                 FDroidApp.subnetInfo = new SubnetUtils(cidr).getInfo(); | ||||
|                                 break; | ||||
|                             } catch (IllegalArgumentException e) { | ||||
|                                 if (BuildConfig.DEBUG) { | ||||
|                                     e.printStackTrace(); | ||||
|                                 } else { | ||||
|                                     Log.i(TAG, e.getLocalizedMessage()); | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|  | ||||
| @ -68,7 +68,7 @@ class CategoriesViewBinder implements LoaderManager.LoaderCallbacks<Cursor> { | ||||
|             } | ||||
|         }); | ||||
| 
 | ||||
|         FloatingActionButton searchFab = (FloatingActionButton) categoriesView.findViewById(R.id.btn_search); | ||||
|         FloatingActionButton searchFab = (FloatingActionButton) categoriesView.findViewById(R.id.fab_search); | ||||
|         searchFab.setOnClickListener(new View.OnClickListener() { | ||||
|             @Override | ||||
|             public void onClick(View v) { | ||||
|  | ||||
| @ -67,7 +67,7 @@ class WhatsNewViewBinder implements LoaderManager.LoaderCallbacks<Cursor> { | ||||
|             } | ||||
|         }); | ||||
| 
 | ||||
|         FloatingActionButton searchFab = (FloatingActionButton) whatsNewView.findViewById(R.id.btn_search); | ||||
|         FloatingActionButton searchFab = (FloatingActionButton) whatsNewView.findViewById(R.id.fab_search); | ||||
|         searchFab.setOnClickListener(new View.OnClickListener() { | ||||
|             @Override | ||||
|             public void onClick(View v) { | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.6 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 243 B | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 449 B | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.9 KiB | 
| @ -381,6 +381,7 @@ public class App extends ValueObject implements Comparable<App>, Parcelable { | ||||
|         App app = new App(); | ||||
|         PackageInfo packageInfo = pm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); | ||||
|         SanitizedFile apkFile = SanitizedFile.knownSanitized(packageInfo.applicationInfo.publicSourceDir); | ||||
|         app.installedApk = new Apk(); | ||||
|         if (apkFile.canRead()) { | ||||
|             String hashType = "SHA-256"; | ||||
|             String hash = Utils.getBinaryHash(apkFile, hashType); | ||||
| @ -389,11 +390,9 @@ public class App extends ValueObject implements Comparable<App>, Parcelable { | ||||
|             } | ||||
|             app.installedApk.hashType = hashType; | ||||
|             app.installedApk.hash = hash; | ||||
|             app.installedApk.sig = Utils.getPackageSig(packageInfo); | ||||
|         } | ||||
| 
 | ||||
|         app.setFromPackageInfo(pm, packageInfo); | ||||
|         app.installedApk = new Apk(); | ||||
|         app.initInstalledApk(context, app.installedApk, packageInfo, apkFile); | ||||
|         return app; | ||||
|     } | ||||
|  | ||||
| @ -295,6 +295,8 @@ public class PreferencesFragment extends PreferenceFragment | ||||
|                     if (TextUtils.equals(Preferences.PREF_EXPERT, pref.getDependency())) { | ||||
|                         pref.setVisible(isExpertMode); | ||||
|                     } | ||||
|                 } | ||||
|                 if (changing) { | ||||
|                     RecyclerView recyclerView = getListView(); | ||||
|                     recyclerView.smoothScrollToPosition(recyclerView.getAdapter().getItemCount() - 1); | ||||
|                 } | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <android.support.design.widget.FloatingActionButton | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:id="@+id/btn_search" | ||||
|     android:id="@+id/fab_search" | ||||
|     android:src="@drawable/ic_search_white" | ||||
|     android:contentDescription="@string/menu_search" | ||||
|     android:layout_width="wrap_content" | ||||
|  | ||||
| @ -21,10 +21,8 @@ | ||||
|               android:layout_below="@android:id/title" | ||||
|               android:layout_alignLeft="@android:id/title" | ||||
|               android:layout_alignStart="@android:id/title" | ||||
|               android:textAppearance="?attr/textAppearanceListItemSmall" | ||||
|               android:textAppearance="?attr/textAppearanceListItemSecondary" | ||||
|               android:textColor="?android:attr/textColorSecondary" | ||||
|               android:singleLine="true" | ||||
|               android:ellipsize="marquee" | ||||
|               android:fadingEdge="horizontal"/> | ||||
| 
 | ||||
|     <!-- @+id/seekbar_value must be present in a SeekBarPreference, but we don't use it --> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner