use only android-14 items in SelectLocalApps until appcompat-v7 is added
Set android-14 as minimum for SelectLocalApps and make sure that everything will work on >= 14. fixes #26 https://gitlab.com/fdroid/fdroidclient/issues/26
This commit is contained in:
		
							parent
							
								
									c7e1d4af7e
								
							
						
					
					
						commit
						776ad3f540
					
				@ -27,8 +27,8 @@
 | 
			
		||||
    <ImageView
 | 
			
		||||
        android:layout_width="48dip"
 | 
			
		||||
        android:layout_height="48dip"
 | 
			
		||||
        android:layout_marginLeft="?android:attr/listPreferredItemPaddingStart"
 | 
			
		||||
        android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
 | 
			
		||||
        android:layout_marginLeft="?android:attr/listPreferredItemPaddingLeft"
 | 
			
		||||
        android:layout_marginStart="?android:attr/listPreferredItemPaddingLeft"
 | 
			
		||||
        android:layout_marginTop="6dip"
 | 
			
		||||
        tools:ignore="ContentDescription" />
 | 
			
		||||
 | 
			
		||||
@ -41,8 +41,8 @@
 | 
			
		||||
            android:id="@+id/application_label"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:layout_marginLeft="?android:attr/listPreferredItemPaddingStart"
 | 
			
		||||
            android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
 | 
			
		||||
            android:layout_marginLeft="?android:attr/listPreferredItemPaddingLeft"
 | 
			
		||||
            android:layout_marginStart="?android:attr/listPreferredItemPaddingLeft"
 | 
			
		||||
            android:layout_marginTop="6dip"
 | 
			
		||||
            android:textAppearance="?android:attr/textAppearanceListItem" />
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -139,7 +139,7 @@ public class LocalRepoActivity extends Activity {
 | 
			
		||||
    public boolean onCreateOptionsMenu(Menu menu) {
 | 
			
		||||
        MenuInflater inflater = getMenuInflater();
 | 
			
		||||
        inflater.inflate(R.menu.local_repo_activity, menu);
 | 
			
		||||
        if (Build.VERSION.SDK_INT < 11) // TODO remove after including appcompat-v7
 | 
			
		||||
        if (Build.VERSION.SDK_INT < 14) // TODO remove after including appcompat-v7
 | 
			
		||||
            menu.findItem(R.id.menu_setup_repo).setVisible(false);
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -86,7 +86,6 @@ public class SelectLocalAppsFragment extends ListFragment
 | 
			
		||||
 | 
			
		||||
            @Override
 | 
			
		||||
            public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
 | 
			
		||||
                Log.i("SelectLocalAppsFragment", "ViewBinder " + columnIndex);
 | 
			
		||||
                if (columnIndex == cursor.getColumnIndex(InstalledAppProvider.DataColumns.APP_ID)) {
 | 
			
		||||
                    String packageName = cursor.getString(columnIndex);
 | 
			
		||||
                    TextView textView = (TextView) view.findViewById(R.id.package_name);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user